summaryrefslogtreecommitdiffstats
path: root/lass/3modules
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-02-13 17:35:55 +0100
committerlassulus <lassulus@lassul.us>2018-02-13 17:35:55 +0100
commitdc2b6931ebfb775f715bc1c3837c20463bcb2418 (patch)
tree4dc962b147ed4abae25de28ba20db37ceb631c85 /lass/3modules
parentf7606723eddae1e6a70a4b6374a950ed3503346a (diff)
l xserver: add DBUS_SESSION
Diffstat (limited to 'lass/3modules')
-rw-r--r--lass/3modules/xserver/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/lass/3modules/xserver/default.nix b/lass/3modules/xserver/default.nix
index d16f89f45..cdd80857a 100644
--- a/lass/3modules/xserver/default.nix
+++ b/lass/3modules/xserver/default.nix
@@ -33,6 +33,11 @@ let
XMONAD_STARTUP_HOOK = pkgs.writeDash "xmonad-startup-hook" ''
${pkgs.xorg.xhost}/bin/xhost +LOCAL: &
${xcfg.displayManager.sessionCommands}
+ if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
+ exec ${pkgs.dbus.dbus-launch} --exit-with-session "$0" ""
+ fi
+ export DBUS_SESSION_BUS_ADDRESS
+ ${config.systemd.package}/bin/systemctl --user import-environment DISPLAY DBUS_SESSION_BUS_ADDRESS
wait
'';
@@ -74,6 +79,7 @@ let
"-xkbdir ${pkgs.xkeyboard_config}/etc/X11/xkb"
(optional (xcfg.dpi != null) "-dpi ${toString xcfg.dpi}")
];
+ User = user.name;
};
};
krebs.xresources.resources.dpi = ''