From 61c9f44a1d1b854cb12e0173fb548094355cfe8f Mon Sep 17 00:00:00 2001 From: Jens Nolte Date: Mon, 11 Jul 2022 02:35:36 +0200 Subject: [PATCH] pipewire: fix bluetooth for system-wide configuration --- nixos/modules/services/desktops/pipewire/wireplumber.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/services/desktops/pipewire/wireplumber.nix b/nixos/modules/services/desktops/pipewire/wireplumber.nix index 439a3ae68daa..004392c7873c 100644 --- a/nixos/modules/services/desktops/pipewire/wireplumber.nix +++ b/nixos/modules/services/desktops/pipewire/wireplumber.nix @@ -50,6 +50,12 @@ in default_access.properties["enable-flatpak-portal"] = false ''; }; + environment.etc."wireplumber/bluetooth.lua.d/80-systemwide.lua" = lib.mkIf config.services.pipewire.systemWide { + text = '' + -- When running system-wide, logind-integration needs to be disabled. + bluez_monitor.properties["with-logind"] = false + ''; + }; systemd.packages = [ cfg.package ];