users/foo-dogsquared/setups/development: init creative coding submodule

This commit is contained in:
Gabriel Arazas 2024-12-31 14:20:34 +08:00
parent e1007920d2
commit 6532ee4ca9
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 20 additions and 3 deletions

View File

@ -73,7 +73,10 @@ in
setups = {
business.enable = true;
desktop.enable = true;
development.enable = true;
development = {
enable = true;
creative-coding.enable = true;
};
fonts.enable = true;
music.enable = true;
music.mpd.enable = true;

View File

@ -4,8 +4,13 @@ let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.setups.development;
in {
options.users.foo-dogsquared.setups.development.enable =
lib.mkEnableOption "foo-dogsquared's software development setup";
options.users.foo-dogsquared.setups.development = {
enable =
lib.mkEnableOption "foo-dogsquared's software development setup";
creative-coding.enable =
lib.mkEnableOption "foo-dogsquared's creative coding setup";
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
@ -75,6 +80,7 @@ in {
httpie-desktop
hurl
grpcurl
steampipe
# Testing out Kubernetes.
kind
@ -133,5 +139,13 @@ in {
d-spy # Some GNOME dev probably developed this.
];
})
(lib.mkIf cfg.creative-coding.enable {
home.packages = with pkgs; [
supercollider-with-plugins
processing
(puredata-with-plugins (with pkgs; [ zexy cyclone ]))
];
})
]);
}