From fd03c30d52cd2e1631bf2353a2b9e108e744e0d9 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Fri, 21 Feb 2025 11:14:22 +0100 Subject: sound: init module --- modules/nixos/sils/sound.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/nixos/sils/sound.nix (limited to 'modules/nixos/sils/sound.nix') diff --git a/modules/nixos/sils/sound.nix b/modules/nixos/sils/sound.nix new file mode 100644 index 0000000..3ad26fb --- /dev/null +++ b/modules/nixos/sils/sound.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.sound; +in { + options.sils.sound.enable = lib.mkEnableOption "sound config"; + config = lib.mkIf cfg.enable { + services.pipewire = { + enable = true; + alsa = { + enable = true; + support32Bit = true; + }; + pulse.enable = true; + jack.enable = true; + }; + }; +} -- cgit v1.3.1