repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
2026-06-07-curated-toolkit-port.mdMarkdown26 lines2.5 KiBsource raw download

Curated Toolkit Port — Plan 3 (executed inline)#

Goal: Port the mature ~5,600-line config into the modular layout: theme, animations, the full pentest toolkit (lazy), aliases, functions — old files preserved as backup, nothing deleted from $HOME.

Decisions (from brainstorming): non-invasive precmd target banner (no starship.toml edits); full curated port.

Built#

Key fixes during build#

  1. ${1//\'/\'\'} took the replacement literally → SQL escape was broken (injection test caught it); fixed via vars.
  2. Inherited PENTEST_LOADED=1 tripped the toolkit self-guard → unset in loader.
  3. Re-entrant recursion / subshell-forked handler → switched to pre-installed wrappers + set loaded-flag-first.

Verification#

Suite: 64/64 passing. Boot median ~185ms (vs OMZ ~1350ms). Clean interactive boot (only a benign non-TTY zle eval notice). Old ~/.zshrc/~/.pentest*.zsh untouched.

Deferred to Plan 4#

.tmux.conf, full setup.sh (already has --link/--revert/--check; add deps install), update.sh, docs (CHEATSHEET/PENTESTING/DATABASE/TMUX/README expansion).