From f2c8e2d3bf850e348c88eb2efa175bcdcd737e93 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 8 Nov 2020 15:49:12 +0000 Subject: [PATCH] hm/graphical-client: set up session vars --- ops/nixos/lib/home-manager/graphical-client.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ops/nixos/lib/home-manager/graphical-client.nix b/ops/nixos/lib/home-manager/graphical-client.nix index 6caab9bca2..2e7d8a6f1e 100644 --- a/ops/nixos/lib/home-manager/graphical-client.nix +++ b/ops/nixos/lib/home-manager/graphical-client.nix @@ -35,6 +35,16 @@ import png:/dev/stdout | pngquant - | xclip -t image/png -selection clipboard -in ''; }; + home.file.".xprofile".text = '' + . "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh" + + if [ -e "$HOME/.profile" ]; then + . "$HOME/.profile" + fi + + systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY XDG_DATA_DIRS XDG_RUNTIME_DIR XDG_SESSION_ID + systemctl --user restart ssh-agent + ''; xsession.windowManager.i3 = { enable = true;