niksos/modules/services/pipewire.nix

37 lines
928 B
Nix

{
config,
lib,
...
}: let
cfg = config.poz.services.pipewire;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
in {
options.poz.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;
extraConfig = {
"10-disable-camera" = {
"wireplumber.profiles" = {
main = {
"monitor.libcamera" = "disabled";
};
};
};
};
};
};
security.rtkit.enable = true;
};
}