mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
zsh: use .zshenv for env vars
This commit is contained in:
parent
3ef56576d3
commit
a0c77d30cc
1 changed files with 1 additions and 9 deletions
|
@ -44,12 +44,6 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
profileExtra = mkOption {
|
|
||||||
default = "";
|
|
||||||
type = types.lines;
|
|
||||||
description = "Extra commands that should be added to .zprofile.";
|
|
||||||
};
|
|
||||||
|
|
||||||
initExtra = mkOption {
|
initExtra = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
|
@ -78,11 +72,9 @@ in
|
||||||
home.packages = [ pkgs.zsh ]
|
home.packages = [ pkgs.zsh ]
|
||||||
++ optional cfg.enableCompletion pkgs.nix-zsh-completions;
|
++ optional cfg.enableCompletion pkgs.nix-zsh-completions;
|
||||||
|
|
||||||
home.file.".zprofile".text = ''
|
home.file.".zshenv".text = ''
|
||||||
${optionalString (config.home.sessionVariableSetter == "zsh")
|
${optionalString (config.home.sessionVariableSetter == "zsh")
|
||||||
envVarsStr}
|
envVarsStr}
|
||||||
|
|
||||||
${cfg.profileExtra}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
home.file.".zshrc".text = ''
|
home.file.".zshrc".text = ''
|
||||||
|
|
Loading…
Reference in a new issue