options follow my.schema to avoid conflicts

This commit is contained in:
2024-04-19 23:19:21 -06:00
parent f1a1656155
commit 36f4b83c82
30 changed files with 1502 additions and 1657 deletions

View File

@@ -1,11 +1,15 @@
{ config, pkgs, lib, unstable, ... }:
{
options = {
myArt.enable = lib.mkEnableOption "enable";
myGameDev.enable = lib.mkEnableOption "enable";
let
unstable = import
(builtins.fetchTarball "https://github.com/nixos/nixpkgs/tarball/master") {
config = config.nixpkgs.config;
};
in {
options.my = {
apps.art.enable = lib.mkEnableOption "enable";
dev.gameDev.enable = lib.mkEnableOption "enable";
};
config = lib.mkIf config.myArt.enable {
config = lib.mkIf config.my.apps.art.enable {
users.users.jawz.packages = with pkgs;
([
gimp # the coolest bestest art program to never exist
@@ -16,7 +20,7 @@
# drawpile # arty party with friends!!
pureref # create inspiration/reference boards
blender # cgi animation and sculpting
]) ++ (if config.myGameDev.enable then [
]) ++ (if config.my.dev.gameDev.enable then [
godot_4 # game development
unstable.gdtoolkit # gdscript language server
] else