From 0f1eb8cd79182640fb26db149c6810b013e8209f Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 20 May 2020 20:42:43 +0100 Subject: [PATCH] nixos/display-managers: Also set DBUS_SESSION_BUS_ADDRESS in the wrapper script context --- nixos/modules/services/x11/display-managers/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index c7e8620729ab..a69e47431738 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -40,6 +40,7 @@ let ${optionalString cfg.startDbusSession '' if test -z "$DBUS_SESSION_BUS_ADDRESS"; then ${config.systemd.package}/bin/systemctl --user start dbus.socket + export `${config.systemd.package}/bin/systemctl --user show-environment | grep '^DBUS_SESSION_BUS_ADDRESS'` fi ''}