nix-conf/modules/nixos/sound/default.nix

21 lines
391 B
Nix
Raw Normal View History

2024-04-10 18:03:35 +00:00
{
config,
lib,
...
}: {
options = {
2024-04-11 08:04:07 +00:00
audio.enable = lib.mkEnableOption "enable sound";
2024-04-10 18:03:35 +00:00
};
2024-04-11 08:04:07 +00:00
config = lib.mkIf config.audio.enable {
2024-08-04 14:13:28 +00:00
#sound.enable = true;
2024-04-10 18:03:35 +00:00
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}