mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
display-managers: Import DBUS session bus address & Xauthority in systemd user session
(cherry picked from commit 40f402cf65)
This commit is contained in:
committed by
Joerg Thalheim
parent
422be29f77
commit
cee47cef45
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user