Files
home-manager/programs/zsh.nix

28 lines
542 B
Nix

{ pkgs, ... }:
{
home.file.".zsh/fastfetch.jsonc".source =
./fastfetch/config.jsonc;
programs.zsh = {
enable = true;
oh-my-zsh = {
enable = true;
theme = "agnoster";
};
initContent = ''
# Use kitty's ssh helper if running inside kitty
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
[[ $- != *i* ]] && return
# Run fastfetch
if command -v fastfetch >/dev/null 2>&1; then
fastfetch --logo none --config ~/.zsh/fastfetch.jsonc
fi
'';
};
}