From effceb8bfe14554537085b52a8be1b0c4127b64a Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 19 May 2020 00:26:45 +0100 Subject: [PATCH] nixos/display-managers: Use dbus socket unit shipped by upstream This ensures a correct DBUS_SESSION_BUS_ADDRESS environment variable is set and imported into the systemd user environment. Previously this would refer to a non-existing path preventing commands interacting with the systemd manager from working. Closes #87502 --- nixos/modules/services/x11/display-managers/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index 2a7a19e7695a..c7e8620729ab 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -39,7 +39,7 @@ let ${optionalString cfg.startDbusSession '' if test -z "$DBUS_SESSION_BUS_ADDRESS"; then - exec ${pkgs.dbus.dbus-launch} --exit-with-session "$0" "$@" + ${config.systemd.package}/bin/systemctl --user start dbus.socket fi ''}