nixos/modules/hardware/pipewire/default.nix

32 lines
619 B
Nix
Raw Normal View History

2023-07-08 20:53:43 +04:00
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.hardware.pipewire;
in
{
options.modules.hardware.pipewire = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# resolve racial conflict between
# pulseaudio and pipewire
2023-07-30 17:49:45 +04:00
sound.enable = lib.mkDefault false;
2023-07-08 20:53:43 +04:00
2023-07-30 17:50:31 +04:00
hardware.pulseaudio.enable = false;
2023-07-08 20:53:43 +04:00
# what is this for will source games
# still work what
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}