feat(sounds): make noisetorch optional

This commit is contained in:
2026-04-30 13:51:05 +02:00
parent dc6229aaac
commit 1337c9d44f
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -82,6 +82,7 @@
};
sound = {
enable = true;
noisetorch = true;
jack = true;
scarlett.enable = true;
};
+2 -1
View File
@@ -9,6 +9,7 @@ with lib; let
in {
options.mySystem.hardware.sound = {
enable = mkEnableOption "Whether to enable sounds with Pipewire";
noisetorch = mkEnableOption "Whether to activate noisetorch support";
scarlett.enable = mkEnableOption "Activate support for Scarlett sound card";
alsa = mkOption {
type = types.bool;
@@ -44,7 +45,7 @@ in {
pulseaudio.enable = false;
};
programs.noisetorch = mkIf cfg.enable {
inherit (cfg) enable;
enable = cfg.noisetorch;
};
};
}