From cd0f96ee6e8df6a76ffc5a96b7a2336689becb6f Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 8 Mar 2025 22:49:50 -0600 Subject: [PATCH] I say I'll learn to play piano... --- hosts/workstation/toggles.nix | 1 + modules/apps/music.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/apps/music.nix diff --git a/hosts/workstation/toggles.nix b/hosts/workstation/toggles.nix index d5be449..05edfd8 100644 --- a/hosts/workstation/toggles.nix +++ b/hosts/workstation/toggles.nix @@ -3,6 +3,7 @@ emacs.enable = true; apps = { art.enable = true; + piano.enable = true; dictionaries.enable = true; fonts.enable = true; gaming.enable = true; diff --git a/modules/apps/music.nix b/modules/apps/music.nix new file mode 100644 index 0000000..378d4f9 --- /dev/null +++ b/modules/apps/music.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + pkgs, + ... +}: +{ + options.my.apps.piano.enable = lib.mkEnableOption "enable"; + config = lib.mkIf config.my.apps.piano.enable { + users.users.jawz.packages = builtins.attrValues { + inherit (pkgs) + neothesia + linthesia + timidity + ; + }; + }; +}