From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/sound.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/sound.nix (limited to 'modules/sound.nix') diff --git a/modules/sound.nix b/modules/sound.nix new file mode 100644 index 0000000..ff90dfc --- /dev/null +++ b/modules/sound.nix @@ -0,0 +1,18 @@ +{ config, lib, ... }: +with lib; +let + cfg = config.nixfiles.modules.sound; +in +{ + options.nixfiles.modules.sound.enable = mkEnableOption "sound support"; + + config = mkIf cfg.enable { + services.pipewire = { + enable = true; + + alsa.enable = true; + jack.enable = true; + pulse.enable = true; + }; + }; +} -- cgit v1.2.3