2023-10-13 23:18:35 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-05-05 12:38:40 +02:00
|
|
|
}: let
|
2024-07-15 23:18:25 +02:00
|
|
|
cfg = config.poz.services.pipewire;
|
2024-05-05 12:38:40 +02:00
|
|
|
|
2024-07-25 11:45:44 +02:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.options) mkEnableOption;
|
2023-10-13 23:18:35 +02:00
|
|
|
in {
|
2024-07-15 23:18:25 +02:00
|
|
|
options.poz.services.pipewire.enable = mkEnableOption "pipewire";
|
2023-10-13 23:18:35 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
2024-08-07 23:17:38 +02:00
|
|
|
wireplumber = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = {
|
2024-08-08 11:07:48 +02:00
|
|
|
"10-disable-camera" = {
|
|
|
|
"wireplumber.profiles" = {
|
|
|
|
main = {
|
|
|
|
"monitor.libcamera" = "disabled";
|
|
|
|
};
|
2024-08-07 23:17:38 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-13 23:18:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
};
|
|
|
|
}
|