@@ -92,9 +92,12 @@ let
9292 ${config.hardware.pulseaudio.package.out}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
9393 ''}
9494
95− # Tell systemd about our $DISPLAY. This is needed by the
96− # ssh-agent unit.
97− ${config.systemd.package}/bin/systemctl --user import-environment DISPLAY
95+ # Tell systemd about our $DISPLAY and $XAUTHORITY.
96+ # This is needed by the ssh-agent unit.
97+ #
98+ # Also tell systemd about the dbus session bus address.
99+ # This is required by user units using the session bus.
100+ ${config.systemd.package}/bin/systemctl --user import-environment DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
98101
99102 # Load X defaults.
100103 ${xorg.xrdb}/bin/xrdb -merge ${xresourcesXft}