mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +01:00
prezto: fix environment files being overwritten (#1863)
Fixed the breakage for prezto introduced in #1778. The previous method created issues where certain configuration files would get replaced by prezto's variants instead of being merged as before. This led to issues like no config being loaded if `home.zsh.dotDir` was set. The old method of loading these files has been restored. This fixes the issue.
This commit is contained in:
parent
920ea74afe
commit
ffbc3819e4
1 changed files with 8 additions and 8 deletions
|
@ -351,16 +351,16 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable (mkMerge [{
|
config = mkIf cfg.enable (mkMerge [{
|
||||||
home.file."${relToDotDir ".zprofile"}".source =
|
home.file."${relToDotDir ".zprofile"}".text =
|
||||||
"${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zprofile";
|
builtins.readFile "${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zprofile";
|
||||||
home.file."${relToDotDir ".zlogin"}".source =
|
home.file."${relToDotDir ".zlogin"}".text =
|
||||||
"${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zlogin";
|
builtins.readFile "${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zlogin";
|
||||||
home.file."${relToDotDir ".zlogout"}".source =
|
home.file."${relToDotDir ".zlogout"}".text =
|
||||||
"${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zlogout";
|
builtins.readFile "${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zlogout";
|
||||||
home.packages = with pkgs; [ zsh-prezto ];
|
home.packages = with pkgs; [ zsh-prezto ];
|
||||||
|
|
||||||
home.file."${relToDotDir ".zshenv"}".source =
|
home.file."${relToDotDir ".zshenv"}".text =
|
||||||
"${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zshenv";
|
builtins.readFile "${pkgs.zsh-prezto}/share/zsh-prezto/runcoms/zshenv";
|
||||||
home.file."${relToDotDir ".zpreztorc"}".text = ''
|
home.file."${relToDotDir ".zpreztorc"}".text = ''
|
||||||
# Generated by Nix
|
# Generated by Nix
|
||||||
${optionalString (cfg.caseSensitive != null) ''
|
${optionalString (cfg.caseSensitive != null) ''
|
||||||
|
|
Loading…
Reference in a new issue