home/zsh: fix omz theme condition

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-31 18:26:01 +03:00
parent 667b198727
commit 4a02a0308c
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -15,7 +15,7 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
# fish and zsh support fo nix-shell # fish and zsh support for nix-shell
home.packages = with pkgs; [ any-nix-shell ]; home.packages = with pkgs; [ any-nix-shell ];
programs.zsh = { programs.zsh = {
@ -36,23 +36,14 @@ in
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = mkIf config.shell.prompt.starship.enable "robbyrussell"; theme = mkIf (!config.shell.prompt.starship.enable) "robbyrussell";
}; };
initExtraFirst = '' initExtraFirst = ''
# nix # nix
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
source $HOME/.nix-profile/etc/profile.d/nix.sh;
fi
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH} export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}
# ghcup
if [ -f "$HOME/.ghcup/env" ]; then
source "$HOME/.ghcup/env"
fi
''; '';
initExtra = '' initExtra = ''
@ -65,4 +56,3 @@ in
}; };
}; };
} }