2023-10-13 23:18:35 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-05-05 12:38:40 +02:00
|
|
|
}: let
|
2023-10-13 23:18:35 +02:00
|
|
|
cfg = config.myOptions.services.pipewire;
|
2024-05-05 12:38:40 +02:00
|
|
|
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2023-10-13 23:18:35 +02:00
|
|
|
in {
|
2024-04-05 22:59:32 +02:00
|
|
|
options.myOptions.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;
|
|
|
|
wireplumber.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
};
|
|
|
|
}
|