diff --git a/modules/programs/oh-my-zsh.nix b/modules/programs/oh-my-zsh.nix index 654c68e1..fc2692a3 100644 --- a/modules/programs/oh-my-zsh.nix +++ b/modules/programs/oh-my-zsh.nix @@ -45,9 +45,12 @@ in config = mkIf cfg.enable { home.packages = [ pkgs.oh-my-zsh ]; + programs.zsh.initExtra = with pkgs; '' # oh-my-zsh configuration generated by NixOS export ZSH=${oh-my-zsh}/share/oh-my-zsh + export ZSH_CACHE_DIR=''${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh + ${optionalString (cfg.plugins != []) "plugins=(${concatStringsSep " " cfg.plugins})" }