diff options
Diffstat (limited to 'modules/hosts/audio')
| -rw-r--r-- | modules/hosts/audio/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/hosts/audio/default.nix b/modules/hosts/audio/default.nix new file mode 100644 index 0000000..3cd06e4 --- /dev/null +++ b/modules/hosts/audio/default.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + ... +}: + +let + inherit (lib) mkOption types mkIf; + cfg = config.nx.services.audio; +in +{ + options.nx.services.audio = { + enable = mkOption { + description = "enable sound"; + type = types.bool; + default = false; + }; + }; + config = mkIf cfg.enable { + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + wireplumber.enable = true; + }; + }; +} |
