From a0c77d30cc32b321c18f7148ee7fdb978106e68b Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Mon, 21 Aug 2017 14:13:03 +0200 Subject: [PATCH] zsh: use .zshenv for env vars --- modules/programs/zsh.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index b0c528e57..34c93963c 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -44,12 +44,6 @@ in ''; }; - profileExtra = mkOption { - default = ""; - type = types.lines; - description = "Extra commands that should be added to .zprofile."; - }; - initExtra = mkOption { default = ""; type = types.lines; @@ -78,11 +72,9 @@ in home.packages = [ pkgs.zsh ] ++ optional cfg.enableCompletion pkgs.nix-zsh-completions; - home.file.".zprofile".text = '' + home.file.".zshenv".text = '' ${optionalString (config.home.sessionVariableSetter == "zsh") envVarsStr} - - ${cfg.profileExtra} ''; home.file.".zshrc".text = ''