summary refs log tree commit diff
path: root/nixos/modules/programs/zsh/zsh.nix
diff options
context:
space:
mode:
authorjD91mZM2 <me@krake.one>2018-05-09 14:58:29 +0200
committerjD91mZM2 <me@krake.one>2018-05-09 14:58:29 +0200
commit77a6cbb1c1feeb6b6424d35319ac6226c780b34a (patch)
tree9951803735ea8723452d3cf4308582c80dcd9fac /nixos/modules/programs/zsh/zsh.nix
parent2ea084ec3af492ee75b54b6a0a40f3ca113b57ec (diff)
downloadnixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.tar
nixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.tar.gz
nixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.tar.bz2
nixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.tar.lz
nixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.tar.xz
nixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.tar.zst
nixlib-77a6cbb1c1feeb6b6424d35319ac6226c780b34a.zip
zsh: move setEnvironment stuff to zprofile
Diffstat (limited to 'nixos/modules/programs/zsh/zsh.nix')
-rw-r--r--nixos/modules/programs/zsh/zsh.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix
index f689250dc61f..b88f54678ee1 100644
--- a/nixos/modules/programs/zsh/zsh.nix
+++ b/nixos/modules/programs/zsh/zsh.nix
@@ -108,8 +108,6 @@ in
         if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
         export __ETC_ZSHENV_SOURCED=1
 
-        ${config.system.build.setEnvironment.text}
-
         ${cfge.shellInit}
 
         ${cfg.shellInit}
@@ -129,6 +127,8 @@ in
         if [ -n "$__ETC_ZPROFILE_SOURCED" ]; then return; fi
         __ETC_ZPROFILE_SOURCED=1
 
+        ${config.system.build.setEnvironment.text}
+
         ${cfge.loginShellInit}
 
         ${cfg.loginShellInit}