Skip to content

Commit 7310c1d

Browse files
committed
fix(nix): deprecated attributes
Fix #546. Fix evaluation warning: `programs.zsh.initExtra` is deprecated, use `programs.zsh.initContent` instead. See also https://nix-community.github.io/home-manager/options.xhtml\#opt-programs.zsh.initContent. Signed-off-by: Leonard Sheng Sheng Lee <[email protected]>
1 parent 49810df commit 7310c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/shell-plugins.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ in
105105
# for the Bash and Zsh home-manager modules,
106106
# the initExtra option is equivalent to Fish's interactiveShellInit
107107
bash.initExtra = strings.concatStringsSep "\n" posixFunctions;
108-
zsh.initExtra = strings.concatStringsSep "\n" posixFunctions;
108+
zsh.initContent = mkOrder 1000 (strings.concatStringsSep "\n" posixFunctions);
109109
};
110110
home = {
111111
inherit packages;

0 commit comments

Comments
 (0)