mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
nixos/pipewire: support system wide pipewire-pulse service
This commit is contained in:
parent
6607cf789e
commit
05b496433a
1 changed files with 5 additions and 2 deletions
|
@ -372,10 +372,13 @@ in
|
||||||
) "${lv2Plugins}/lib/lv2";
|
) "${lv2Plugins}/lib/lv2";
|
||||||
|
|
||||||
# Mask pw-pulse if it's not wanted
|
# Mask pw-pulse if it's not wanted
|
||||||
systemd.user.services.pipewire-pulse.enable = cfg.pulse.enable;
|
systemd.services.pipewire-pulse.enable = cfg.pulse.enable && cfg.systemWide;
|
||||||
systemd.user.sockets.pipewire-pulse.enable = cfg.pulse.enable;
|
systemd.sockets.pipewire-pulse.enable = cfg.pulse.enable && cfg.systemWide;
|
||||||
|
systemd.user.services.pipewire-pulse.enable = cfg.pulse.enable && !cfg.systemWide;
|
||||||
|
systemd.user.sockets.pipewire-pulse.enable = cfg.pulse.enable && !cfg.systemWide;
|
||||||
|
|
||||||
systemd.sockets.pipewire.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
systemd.sockets.pipewire.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
||||||
|
systemd.sockets.pipewire-pulse.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
||||||
systemd.user.sockets.pipewire.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
systemd.user.sockets.pipewire.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
||||||
systemd.user.sockets.pipewire-pulse.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
systemd.user.sockets.pipewire-pulse.wantedBy = mkIf cfg.socketActivation [ "sockets.target" ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue