18 lines
344 B
Nix
18 lines
344 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.modules.system.sound;
|
|
inherit (lib.modules) mkIf;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
services.pulseaudio.enable = false;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true; # TODO Do I need this?
|
|
pulse.enable = true;
|
|
};
|
|
security.rtkit.enable = true;
|
|
};
|
|
}
|