fi
'';
environment.etc.zinputrc.source = ./zinputrc;
environment.systemPackages = [ pkgs.zsh ]
++ optional cfg.enableCompletion pkgs.nix-zsh-completions;
environment.pathsToLink = optional cfg.enableCompletion "/share/zsh";
environment.extraSetup =
optionalString (cfg.enableCompletion && cfg.zcompile) (toString (pkgs.writeScript "zcompile-step" ''
#!${pkgs.zsh}/bin/zsh
setopt null_glob
O=$out/share/zsh
fpath=( $O/{site-functions,$ZSH_VERSION/functions,vendor-completions} )
zcompile -ca "$O/site-functions"
# rm -f $fpath
''));
#users.defaultUserShell = mkDefault "/run/current-system/sw/bin/zsh";
The above fail to build with error:/nix/store/1ymcmqicfp2cfmwnan7gn7g6rbfgkqjv-zcompile-step:zcompile:5: no functions
Someone well versed in zsh could help me with this piece