home/zsh: fix omz theme condition
This commit is contained in:
parent
667b198727
commit
4a02a0308c
1 changed files with 2 additions and 12 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue