#!/usr/bin/env zsh# ── ~/.dotfiles/.zshrc : module orchestrator ─────────────────────────────────# Loaded because ~/.zshenv exports ZDOTDIR=$HOME/.dotfiles.DOTFILES="${ZDOTDIR:-$HOME/.dotfiles}"# ── home-manager session variables ───────────────────────────────────────────# NixDaemon declares 22 vars via home.sessionVariables (BROWSER, PASSAGE_*,# XDG_*, STARSHIP_CONFIG, MPD_*, the cursor theme). home-manager writes them to# hm-session-vars.sh and normally injects the sourcing into the ~/.zshrc it# generates -- but this zshrc is hand-written and loaded via ZDOTDIR, so nothing# ever read that file and every one of those vars was silently empty. passage in# particular fell back to its own defaults instead of the age key.## Sourced before the config modules so they can still override. The file sets# __HM_SESS_VARS_SOURCED and no-ops if already sourced. Both paths are checked# and neither exists off NixOS, so this is inert on macOS and Omarchy.for _hm in"/etc/profiles/per-user/$USER/etc/profile.d/hm-session-vars.sh"\"$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"; do[[ -r "$_hm"]]&&{source"$_hm"; break; }doneunset _hm
# ── fetch logo ───────────────────────────────────────────────────────────────# Pin the fetch/prompt symbol. Unset this line to go back to rotating through# the whole pool (chi orthodox jerusalem ichthys kali skull arch omarchy nixos).# omarchy | arch | nixos -> distro logos, drawn by fastfetch from a .txt# chi | orthodox | jerusalem | ichthys | kali | skull -> crossfetch masksexportCROSS_SYMBOL="nixos"# plain = run bare `fastfetch`: on NixDaemon the config is Nix-managed# (home/modules/prompt.nix) and draws the NixOS logo itself. The symbol above# still sets the prompt glyph. (omarchy did the same for Omarchy's config.)exportCROSS_FETCH="plain"# The NixDaemon fetch card (home/modules/prompt.nix) is ~20 rows and ~100# columns: NixOS logo 45 + padding 7 + the info column. Below 100 columns the# splash drops the logo (compact), below 22 rows the card. The stock gates# (107 / 30) were sized for the Omarchy boxes and hid the card in a normal# kitty window.exportSPLASH_FULL_COLS=100exportSPLASH_MIN_ROWS=22# No opening animation (the silk "bloom" rose) and no DAEMON-SEC wordmark# before the card: just the fetch, the verse and the git welcome.# `splash now` / `silk bloom` still play either on demand.exportSPLASH_STYLE=none
exportSPLASH_BANNER_COLS=9999# Load order matters: platform PATH first (macos is inert on Linux), then core,# then leaves, then prompt, then splash.for _m in macos core aliases functions ripgrep fzf vault-pdf grep zgrep strings date locate cheats music zoxide modern theme pentesting jj animations; do[[ -r "$DOTFILES/config/$_m.zsh"]]&&source"$DOTFILES/config/$_m.zsh"doneunset _m
# ── conda : lazy hook ─────────────────────────────────────────────────────────# The eager `conda init` block cost ~0.44s per shell and auto-activated base# (mixing conda `python` with brew `python3`). auto_activate_base is now off;# the hook loads on first use, so `conda activate <env>` still just works.for _conda in /opt/anaconda3/bin/conda "$HOME/miniconda3/bin/conda""$HOME/anaconda3/bin/conda"; do[[ -x $_conda]]||continue conda(){ unfunction conda
eval"$("$_conda" shell.zsh hook 2>/dev/null)" conda "$@"}breakdoneunset _conda
# spicetify (Linux only, and only if installed) — was a hardcoded absolute path# that leaked /home/daemon-sec onto every restored machine incl. Macs.[[ -d "$HOME/.spicetify"]]&&exportPATH="$PATH:$HOME/.spicetify"# >>> dock >>># Aliases and completion for the `dock` CLI (rootless Docker).# Remove this block and ~/.dotfiles/config/dock.zsh to uninstall.[[ -r "$HOME/.dotfiles/config/dock.zsh"]]&&source"$HOME/.dotfiles/config/dock.zsh"# <<< dock <<<