{ config, pkgs, lib, ... }: { programs.zsh = { enable = true; enableCompletion = true; autosuggestion.enable = true; syntaxHighlighting.enable = true; oh-my-zsh = { enable = true; plugins = [ "git" ]; theme = ""; }; plugins = [ { name = "powerlevel10k"; src = pkgs.zsh-powerlevel10k; file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme"; } ]; initContent = lib.mkMerge [ (lib.mkOrder 500 '' [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]] \ && source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" '') (lib.mkOrder 1500 '' [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh ${builtins.readFile ./shell/.mattrc} # work / sensitive overrides (gitignored, not in repo) [[ -f ~/.allenairc ]] && source ~/.allenairc [[ -f ~/.wwurc ]] && source ~/.wwurc [[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh [[ -d "$HOME/.bun" ]] && { export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" [[ -s "$BUN_INSTALL/_bun" ]] && source "$BUN_INSTALL/_bun" } export PATH="/nix/var/nix/profiles/default/bin:$PATH" '') ]; }; }