summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/settings/base.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix
index b181d4ad..eda280fa 100644
--- a/user/settings/base.nix
+++ b/user/settings/base.nix
@@ -42,11 +42,16 @@
       };
     };
   };
-    EMAIL = "alan@alanpearce.eu";
-    XDG_CACHE_HOME = if pkgs.stdenv.isDarwin then "$HOME/Library/Caches/XDG" else "$HOME/.cache";
-    XDG_CONFIG_HOME = "$HOME/.config";
-    XDG_DATA_HOME = "$HOME/.local/share";
-  };
+  home.sessionVariables =
+    let
+      HOME = builtins.getEnv "HOME";
+    in
+    {
+      EMAIL = "alan@alanpearce.eu";
+      XDG_CACHE_HOME = if pkgs.stdenv.isDarwin then "${HOME}/Library/Caches/XDG" else "${HOME}/.cache";
+      XDG_CONFIG_HOME = "${HOME}/.config";
+      XDG_DATA_HOME = "${HOME}/.local/share";
+    };
 
   programs.zsh.shellAliases = {
     make = "remake";