From 6a02e865993976efbbdce6ba19049d0bf904f25f Mon Sep 17 00:00:00 2001 From: Myned <dev@bjork.tech> Date: Sat, 29 Mar 2025 18:15:08 -0500 Subject: [PATCH] pipewire: add system option --- options/custom/services/pipewire.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/options/custom/services/pipewire.nix b/options/custom/services/pipewire.nix index cadad1c..a6462ba 100644 --- a/options/custom/services/pipewire.nix +++ b/options/custom/services/pipewire.nix @@ -6,7 +6,11 @@ with lib; let cfg = config.custom.services.pipewire; in { - options.custom.services.pipewire.enable = mkOption {default = false;}; + options.custom.services.pipewire = { + enable = mkOption {default = false;}; + pulseaudio = mkOption {default = true;}; + system = mkOption {default = false;}; + }; config = mkIf cfg.enable ({ #!! Realtime priority may cause desync @@ -17,7 +21,8 @@ in { # https://gitlab.freedesktop.org/pipewire/pipewire pipewire = { enable = true; - pulse.enable = true; + systemWide = cfg.system; + pulse.enable = cfg.pulseaudio; alsa = { enable = true;