From 1337c9d44fe5250a9ee1b40376e7db24944c992d Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 30 Apr 2026 13:51:05 +0200 Subject: [PATCH] feat(sounds): make noisetorch optional --- hosts/marpa/default.nix | 1 + system/hardware/sound.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/marpa/default.nix b/hosts/marpa/default.nix index c3e6282..d58e775 100644 --- a/hosts/marpa/default.nix +++ b/hosts/marpa/default.nix @@ -82,6 +82,7 @@ }; sound = { enable = true; + noisetorch = true; jack = true; scarlett.enable = true; }; diff --git a/system/hardware/sound.nix b/system/hardware/sound.nix index ce07cd4..62c6f14 100644 --- a/system/hardware/sound.nix +++ b/system/hardware/sound.nix @@ -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; }; }; }