{ dotfiles, ... }: { programs.zsh = { enable = true; initExtra = '' export GPG_TTY=$(tty) source ${dotfiles}/zsh/zshrc [[ -d "$HOME/.local/bin" ]] || mkdir "$HOME/.local/bin" export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:$HOME/.npm-packages/bin" export FRENYARD_SCALE=2.40 export RETHINK_API="https://rethink.alyxia.dev" function violent-update() { # sudo -v; while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & cd "$HOME/.dotfiles/nix"; sudo nix-channel --update && nix-channel --update; sudo nix-env -u; } ''; }; }