git.iko.soy/typeable/nixpkgs
on master help sign in
display-managers: Import DBUS session bus address & Xauthority in systemd user session
commit40f402cf653db5c9a3c8a704b25f9437e40fc033 authoradisbladis <adis@blad.is> dateMon 16 Oct 2017, 17:49 (9 years ago) parente55b99e
1 file changed+6−3
nixos/modules/services/x11/display-managers/default.nix+6−3
nixos/modules/services/x11/display-managers/default.nix+6−3
@@ -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}