nix/module/Sound.nix

23 lines
373 B
Nix
Raw Normal View History

{
2024-11-04 04:37:29 +03:00
config,
lib,
...
}: let
2024-11-07 12:12:53 +03:00
cfg = config.module.sound;
2024-11-04 04:37:29 +03:00
in {
2024-11-07 12:12:53 +03:00
options.module.sound.enable = lib.mkEnableOption "the sound.";
2024-06-25 04:04:39 +03:00
2024-11-04 04:37:29 +03:00
config = lib.mkIf cfg.enable {
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
};
2024-03-28 07:51:33 +03:00
}