nix/config/Sound.nix

21 lines
308 B
Nix

{
config,
lib,
...
}: let
cfg = config.module.sound;
in {
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;
};
};
};
}