From ca049c58958fb24815f1e708ac329acaf6ba762e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sat, 7 Jun 2025 23:08:49 +0200 Subject: [PATCH] System Gen62 @ 2025-06-07-23:08:48 by jonas@monolith --- hosts/monolith/configuration.nix | 1 + modules/hardware/sound.nix | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/hosts/monolith/configuration.nix b/hosts/monolith/configuration.nix index 627c3a6..3b7207b 100644 --- a/hosts/monolith/configuration.nix +++ b/hosts/monolith/configuration.nix @@ -51,6 +51,7 @@ hive.virt-manager.forUsers = ["jonas"]; hive.bluetooth.enable = true; hive.sound.enable = true; + hive.sound.noisetorch = true; hive.yubikey.enable = true; hive.services.kdeconnect.enable = true; hive.wg.client.enable = true; diff --git a/modules/hardware/sound.nix b/modules/hardware/sound.nix index 61336d9..8ef66a7 100644 --- a/modules/hardware/sound.nix +++ b/modules/hardware/sound.nix @@ -6,10 +6,17 @@ cfg = config.hive.sound; in { options = { - hive.sound.enable = lib.mkOption { - type = lib.types.bool; - default = false; - description = "Enable sound with pipewire."; + hive.sound = { + enable = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable sound with pipewire."; + }; + noisetorch = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable Noisetorch for noise cancellation."; + }; }; }; config = lib.mkIf cfg.enable { @@ -28,5 +35,6 @@ in { # no need to redefine it in your config for now) #media-session.enable = true; }; + programs.noisetorch.enable = cfg.noisetorch; }; }