better package concatenation

This commit is contained in:
Danilo Reyes 2024-12-15 18:12:12 -06:00
parent c798603dfe
commit c820bac2e8

View File

@ -11,26 +11,28 @@
};
config = lib.mkIf config.my.apps.art.enable {
users.users.jawz.packages =
let
gdPackages = builtins.attrValues {
inherit (pkgs)
godot_4 # game development
gdtoolkit_4 # gdscript language server
;
};
packages = builtins.attrValues {
inherit (pkgs)
gimp # the coolest bestest art program to never exist
krita # art to your heart desire!
# mypaint # not the best art program
# mypaint-brushes # but it's got some
# mypaint-brushes1 # nice damn brushes
blender # cgi animation and sculpting
drawpile # arty party with friends!!
pureref # create inspiration/reference boards
;
};
in
packages ++ (if config.my.dev.gameDev.enable then gdPackages else [ ]);
builtins.attrValues {
inherit (pkgs)
gimp # the coolest bestest art program to never exist
krita # art to your heart desire!
# mypaint # not the best art program
# mypaint-brushes # but it's got some
# mypaint-brushes1 # nice damn brushes
blender # cgi animation and sculpting
drawpile # arty party with friends!!
pureref # create inspiration/reference boards
;
}
++ (
if config.my.dev.gameDev.enable then
builtins.attrValues {
inherit (pkgs)
godot_4 # game development
gdtoolkit_4 # gdscript language server
;
}
else
[ ]
);
};
}