Skip to content

Commit

Permalink
display-managers: Import DBUS session bus address & Xauthority in sys…
Browse files Browse the repository at this point in the history
…temd user session

(cherry picked from commit 40f402c)
  • Loading branch information
adisbladis authored and Mic92 committed Oct 17, 2017
1 parent 422be29 commit cee47ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nixos/modules/services/x11/display-managers/default.nix
Expand Up @@ -92,9 +92,12 @@ let
${config.hardware.pulseaudio.package.out}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
''}
# Tell systemd about our $DISPLAY. This is needed by the
# ssh-agent unit.
${config.systemd.package}/bin/systemctl --user import-environment DISPLAY
# Tell systemd about our $DISPLAY and $XAUTHORITY.
# This is needed by the ssh-agent unit.
#
# Also tell systemd about the dbus session bus address.
# This is required by user units using the session bus.
${config.systemd.package}/bin/systemctl --user import-environment DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
# Load X defaults.
${xorg.xrdb}/bin/xrdb -merge ${xresourcesXft}
Expand Down

0 comments on commit cee47ce

Please sign in to comment.