niksos/modules/services/pipewire.nix

24 lines
510 B
Nix
Raw Normal View History

{
config,
lib,
...
}: with lib; let
cfg = config.myOptions.services.pipewire;
in {
2024-04-05 22:59:32 +02:00
options.myOptions.services.pipewire.enable = mkEnableOption "pipewire";
config = mkIf cfg.enable {
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
security.rtkit.enable = true;
};
}