Parametric_Forge owns the machine: one flake owns the macOS workstation — system defaults, GUI apps, CLI tools, fonts, overlays, secrets rails, SSH in both directions, tailnet serving, and cache policy. Consumer repos assume the machine's tools on PATH and never import Parametric_Forge; when shell, toolchain, credential, or wrapper behavior fails in a consumer, the fix lands here. Nothing in this repo couples to a specific project — it aligns with consumers, never binds to them.
This regenerable topology maps the repository's owning entry points.
Parametric_Forge/
├── Casks/ # Vendor GUI packages absent from Homebrew's catalog
├── flake.nix # Flake inputs, systems, outputs
├── flake.lock
├── flake-modules/ # nixpkgs instance, host factory, outputs, checks, formatter
├── hosts/
│ └── context.nix # Host-context row registry
├── modules/
│ ├── common/ # Shared Nix settings and toolchain environment
│ ├── style.nix # Indent and line width every formatter reads
│ ├── darwin/
│ │ ├── settings/ # Root-scope macOS defaults, security, launchd environment
│ │ └── homebrew/ # Homebrew bridge
│ └── home/
│ ├── aliases/ # Shell alias registry
│ ├── assets/
│ │ └── ascii/ # Fetch banner assets
│ ├── environments/ # Cross-tool environment projections
│ ├── programs/
│ │ ├── apps/
│ │ │ ├── blender/ # Startup script with developer preferences, debugpy module
│ │ │ ├── karabiner/ # Leader-chord keyboard layer
│ │ │ ├── linearmouse/ # External-mouse schemes
│ │ │ ├── unreal/ # UnrealBuildTool and per-user engine settings
│ │ │ ├── vscode/ # Extensions
│ │ │ ├── wezterm/ # Terminal host
│ │ │ └── zellij/ # Multiplexer layouts and themes
│ │ ├── git-tools/
│ │ ├── languages/ # Command-line tools by domain
│ │ ├── mac-tools/ # Application rows and default handlers
│ │ │ └── defaults/ # User-scope macOS defaults
│ │ ├── media-tools/ # Media and document tools, speech model files
│ │ ├── shell-tools/ # CLI kernels, SSH, secrets, deploy rail
│ │ └── zsh/
├── overlays/ # Manifest-folded package admissions
├── .claude/ # Claude Code configuration
└── .codex/ # Codex configuration
hosts/context.nix registers macbook (aarch64-darwin). Its row carries identity, platform, state versions, the SSH public key, and the tailnet facts (node name, address ranges, server names); flake-modules/hosts.nix projects it into darwinSystem on the one perSystem nixpkgs instance (flake-modules/nixpkgs.nix, overlay and unfree included) and derives the flake's systems from the rows, and the home graph reads the same row.
Rulings derive from principles, not precedent lists. These axes resolve each new situation:
| [INDEX] | [AXIS] | [LAW] |
|---|---|---|
| [01] | Greenfield-only | Every touched surface rebuilds to the best current shape; no compatibility layer of any kind survives. |
| [02] | One owner per axis | One declaring file per concern; a second copy of any fact is a fork — extend the owner, never add files. |
| [03] | Rows over hardcodes | Capability lands as a parameterized row on the owning table; a new host, package, or service is one row. |
| [04] | Polymorphic collapse | Density rises inside the owning file — merged types, dispatch tables, folds — never by extraction. |
| [05] | IaC over YAML | Pulumi rows in Rasm infra/ own this repo's GitHub settings and Doppler project. |
| [06] | Currency as review | Newest release, prereleases included; a pin exists only for a named incompatibility and dies with it. |
| [07] | No LFS | Repo media ships as plain git blobs kept preview-small; a project using LFS pins git-lfs in its mise.toml. |
| [08] | Aesthetics first-class | Visual surfaces (theme, prompt, TUI, fonts) are designed systems with single palette ownership. |
This machine runs Determinate Nix, not vanilla: Determinate owns the daemon and /etc/nix/nix.conf (eval-cores, lazy-trees, experimental-features, its caches). modules/common/nix.nix declares only determinateNix.customSettings (written to /etc/nix/nix.custom.conf), the flake registry, and determinateNixd rows; the module rejects bash-prompt-prefix, external-builders, extra-nix-path, netrc-file, ssl-cert-file, and upgrade-nix-store-path-url in custom settings. The registry pins every flake input at its locked revision, so nix run nixpkgs#x and <nixpkgs> resolve to the nixpkgs the system was built from; ids outside the inputs are spelled as full refs. Every new store path is hard-linked on arrival (auto-optimise-store); determinate-nixd's automatic GC frees dead paths in the background, and system and home generations stay until nh clean all prunes them by hand ([14]); Parametric_Forge sets no keep-outputs, min-free, or max-free, so build-time outputs are collectable and the daemon's collector is the one policy.
modules/common/carries Nix settings and the toolchain env vocabulary: one PATH vector and one cross-surface row set, which nix-darwin'sset-environmentgives every zsh and every login or interactive bash,launchctl config user pathand thegui-envagent (PATH included) replay into the GUI launchd domain, and/etc/pathsholds forpath_helper, so a login bash resolves the machine's tools before Apple's. Abash -creads no startup file and keeps the environment of its parent. Every zsh adds the PATH entries it lacks, re-exports every managed row and unsets retired ones when the inheritedSESSION_ENV_STAMPdiffers from its own (a deliberate override under an unchanged stamp survives), and sources the session cache; azsh -cthen appliesmise envof its start directory from.zshenv, and an interactive zsh runsmise activate. Rows only zsh reads stay Home Manager session variables, which bash, launchd, and GUI apps never see. The login shell is Apple's/bin/zsh(host.user.shell) and Nix supplies its configuration; nix-darwin's zsh module, which writes/etc/zshenv, also installs nixpkgs zsh with no switch against it, sozshby name runs that build under the same configuration with a completion dump of its own. The time zone is macOS's automatic zone, never aTZrow.modules/darwin/carries system-scope macOS state: defaults, security, and the Homebrew bridge. Homebrew carries GUI/proprietary bundles nixpkgs cannot ship; every activation runsbrew update(HOMEBREW_AUTO_UPDATE_SECS=0, since Homebrew otherwise skips an update within 24 hours of the last, and with it the fetch that brings this checkout's commits into its tap clone), installs missing roster entries, upgrades outdated ones (a cask without a version, such aswezterm@nightly, is a greedy Brewfile row, so a changed download replaces it;1password@nightlystays non-greedy because 1Password updates itself and aborts when another process swaps its bundle), and uninstalls nothing the roster lacks, so operator installs survive;brew install,upgrade, andreinstallrun a fullbrew cleanupat most daily (HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=1), which deletes downloads older than 3 days (HOMEBREW_CLEANUP_MAX_AGE_DAYS). Every shell, launchd job, and GUI app runsbrewwithout auto-update (shared rowHOMEBREW_NO_AUTO_UPDATE), andHOMEBREW_FORCE_API_AUTO_UPDATEstill refreshes formula and cask data older than 450 seconds beforebrew install,outdated, andupgrade, and older than 7 days before other reads (brew info). A cask follows its channel that replaces the same app (@nightly,@daily,@beta,@alpha) while that channel releases ahead of stable, sowhatsappstays stable, as its beta feed stopped at 26.35.23 in September, andf3d-appstays on releases, as each nightly asset name holds its build's git description and a cask URL is fixed; a channel Homebrew installs as a separate app with its own profile (Chrome Canary, Discord Canary, VS Code Insiders, Firefox Nightly) is another app, and moving to a channel thatconflicts_withthe installed cask takesbrew uninstall --cask <old>first.settings/spotlight.nixreconciles Privacy exclusions through_MDSetExclusionwith indexing on, as System Settings does: a fixed list of cache and app data folders, each home dot-folder and each dot-folder ornode_modulesat the top of a~/Developer/<project>(symlinks aside, listed by exact path at each switch, as an exclusion takes no glob), and each repository's ignored build folders under~/Developer.mdsreads the length of a queued exclusion path as signed bytes and asserts on a volume path of 127 to 254 bytes (and each 256 above), so the reconcile sends no such path and lists it underunsettable; a failed call is listed underfailed, retried at the next switch, and never fails activation.Casks/owns vendor GUI packages absent from Homebrew's main catalog; Homebrew taps this checkout asbsamiee/parametric-forge(modules/darwin/homebrew/), so a committed cask reaches the next activation without a push. Homebrew quarantines every cask download and offers no switch against it; with Gatekeeper assessments off (step 9) the attribute blocks nothing.brew style bsamiee/parametric-forgeandbrew audit --cask --strict --online --except=min_os bsamiee/parametric-forge/<cask>check a cask: each declaresdepends_on :macosalone, so the minimum-macOS audit, which asks for the vendor's oldest supported release, does not apply.- Adobe applications remain Creative Cloud-owned; Typeface uses its native vendor updater.
mac-tools/default-applications.nixowns the application rows (bundle id, handled extensions and schemes, path where a consumer opens the bundle) that the Dock, LinearMouse, and the utiluti handler reconcile read; command-line tools an app bundle ships (tailscalein Tailscale,sfsymbolsin SF Symbols,spkgin Suspicious Package,spotify_cliandsave-to-spotify,aerender,UnifiedPluginInstallerAgent, the slicer CLIsbambu-studioandorca-slicer, Rasm'swatch-app, and the Unreal Engine toolsUnrealPak,UnrealEditor-Cmd, andzen) go on PATH as one-lineexeclaunchers at their bundle path, sincesfsymbolsfinds its catalog only through the bundle it runs from.mac-tools/defaults/owns user-scope macOS defaults as Home Managertargets.darwin.defaultsrows, imported every switch: the agent hosts (WezTerm, ChatGPT with Codex, Claude, VS Code) run with App Nap off, AirPlay Receiver stays off (currentHostAirplayReceiverEnabled), so ports 5000 and 7000 stay free, and AlDente's Sleep Control keeps the Mac awake, lid closed included, until the battery reaches 20%.mac-tools/app-store.nixinstalls each Mac App Store app (mas installunder a 60 minute bound) only while/Applications/<name>.appis absent, so a switch never reinstalls Xcode on an empty or busy Spotlight index, a hungmasreports and the switch moves on, and the App Store updates the apps itself; once Xcode is present its row selects/Applications/Xcode.app/Contents/Developer(xcode-select --switch) throughsudo.home/fonts.nixinstalls the curated catalog through Home Manager's native user font projection and projects its roles into fontconfig's generic families. modules/home/carries user-scope state under Home Manager: XDG hygiene, session environments, program owners. System and home scopes never mix in one module.- Developer switches are machine state.
programs/apps/<app>/holds one folder per application whose settings Forge declares: Blender loadsdeveloper_preferences.pyand the pinneddebugpymodule fromBLENDER_SYSTEM_SCRIPTS(a[FONTS_MEDIA]row, so apps the Dock starts read it too), Unreal reads the user-layer.inifiles for every project, and VS Code takes the Adobe debugger extensions throughcode --install-extension.mac-tools/defaults/system.nixholds the rest: Xcode, CrashReporter, WebKit developer extras, Office add-in inspection, a JSON merge into the VS Code, Claude, and Discord files that enable DevTools, PhotoshopPSUserConfig.txt, one activation editing After Effects, Premiere, Media Encoder, Illustrator, Acrobat, and LibreOffice preferences, and Parallels Desktop rows (automatic update checks and downloads, promotions off) with aprlsrvctlactivation holding VM home~/Parallels, verbose logging on, and the Customer Experience Program off, each set only whenprlsrvctl inforeads otherwise. Each of those apps rewrites its file on quit, so a block whose app runs prints a notice and applies at the next switch, and every block writes only when its edit changes the file; the running check matches each app's main executable, ascrashpad_handleranddynamiclinkmanageroutlive After Effects; each DVA app takes its Debug Database rows in every version folder it holds.settings/security.nixenables developer mode (DevToolsSecurity), writes UXP developer mode, IllustratorAIFeatures.cfg, and/etc/mobileconfig/unified-log-private-data.mobileconfig, which the owner installs ([13] step 8). overlays/is the admission gate for upstream packages nixpkgs lacks or pins wrongly:manifest.nixowns admission and recipes consume nvfetcher-generated versions and hashes. A row for a tool nixpkgs also ships is named<attr>-currentand its consumers name it, so nixpkgs packages built against the nixpkgs attribute stay substitutable, and a row whose version nixpkgs reached goes. Admission requires a real consumer now — never anticipatory packaging.
Doppler owns project and service configuration; 1Password owns local operator and session custody. Home Manager writes the mode-600 session cache on every activation: op run resolves every row as the 1Password service account whose token sits in ~/.local/state/op/service-account and bash writes each value shell-quoted, so a value holding a quote, $, or a backtick reads back whole and a token changed in vault Tokens reaches the cache at the next switch with no Touch ID. The cache carries a stamp of its own content (SESSION_CACHE_STAMP): a shell that inherited another stamp drops every cached name before sourcing, names of rows since retired included (the cache exports its name list as SESSION_CACHE_NAMES), so a new zsh under an old WezTerm or Zellij holds the current values, an interactive zsh re-sources at each prompt, and a deliberate override survives while the stamp is unchanged; a process that is no shell (an agent, an MCP server) keeps what it started with. The app authorizes one read, of that service-account token, when the file is absent; after rotating that token, remove the file. fileRows in the same module restore credential files a tool reads from disk (GAM's oauth2.txt, client_secrets.json, oauth2service.json) from the store when absent, mode 600, never through the Nix store. The cache exports the registry tokens NODE_AUTH_TOKEN, UV_PUBLISH_TOKEN, and CARGO_REGISTRY_TOKEN, which uv publish and cargo publish read by name; pnpm reads NODE_AUTH_TOKEN through ~/.config/pnpm/auth.ini, as nix-darwin and Home Manager export each row inside unescaped double quotes, which a PNPM_CONFIG__AUTH JSON value breaks. Process-specific Doppler consumers invoke doppler run or doppler secrets download explicitly. Doppler reads its configuration through ~/.doppler, a link to ~/.config/doppler: the CLI prints a warning on every call that reads DOPPLER_CONFIG_DIR from the environment, so no surface sets it. Read names with doppler secrets --project <p> --config <c> --only-names; add a key in its owning config and wire its process consumer. gh runs on the classic all-scope token (GH_TOKEN reads item GH_PROJECTS_TOKEN), and GITHUB_TOKEN stays the fine-grained token for every other tool.
shell-tools/ssh.nix (client and agent socket), settings/security.nix (Remote Login and the github.com host key), shell-tools/1password.nix (agent key), git-tools/git.nix (commit signing), and hosts/context.nix (public key, tailnet servers) declare SSH; mazan-group runbooks/access/ssh.md holds every route, key, setting, and owner ruling. rclone remotes are environment-defined and leave rclone.conf to the OAuth remotes rclone writes itself: each tailnet host is an SFTP remote of its own name through ssh, b2: is Backblaze's native backend, and r2: is Cloudflare R2 over S3, the keys of both arriving from the session cache. The tailnet client is the Standalone Tailscale app (cask tailscale-app): its tailscale CLI is a bundled-CLI launcher of mac-tools/default-applications.nix and its start at login a TailscaleStartOnLogin defaults row. __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS names the node, so a Vite dev server accepts the tailnet host name.
redeploy build|switch [nh args] is the only sanctioned activation path: nh darwin builds the host toplevel with its own rom progress, prints a dix diff against the live system, and on switch sets the system profile and activates through the primary user's passwordless sudo. Nothing is pushed to the Cachix cache: it is public, and a switch builds the machine's own configuration; a package path goes there only through a deliberate , cachix push, which comma runs on demand.
Probe a machine that misbehaves after a switch before theorizing about it: which -a <bin> classifies PATH owners and cross-owner shadows, launchctl list | rg dev.bsamiee reconciles the declared agent set against the live table, and readlink /run/current-system reads the live generation against $HOME. Every probe is read-only, so it opens the investigation rather than closing it.
Recurring machine work is launchd-owned under the dev.bsamiee.<name> label grammar, each agent declared beside the surface it serves: launchctl list | rg dev.bsamiee is the live census of the agents declared here, launchctl print gui/$UID/dev.bsamiee.<name> the per-agent probe. Each new recurring job lands as one agent declaration, and system.nix derives a newsyslog rotation row from every agent's log path. Agents are Background jobs, which macOS throttles under load; an agent something waits on (atuin-daemon) states ProcessType = "Interactive". One agent runs on a schedule. Atuin reports no store size and has no thread retention, so du -sh ~/.local/share/atuin/*.db is the check. menu-record copies the menu-choice stream ~/Library/Biome/streams/restricted/App.MenuItem/local (SEGB segments) to ~/.local/state/menu-record daily at 13:10 and deletes copies older than 365 days. macOS protects that folder, so settings/system.nix declares the job through nix-darwin with /bin/zsh as its program, the binary granted Full Disk Access ([13] step 8): Home Manager starts its agents through /bin/sh, and macOS attributes a job to its first program. Without the grant the copy fails and ~/Library/Logs/menu-record.log holds the refusal.
gui-setenv (environments/shell.nix) publishes machine values into the GUI launchd domain and removes keys retired by each writer. Newly spawned processes inherit those values. Applications and projects own their process lifecycles, and zsh refreshes its declared machine environment before applying project configuration.
- [PYTHON]: no machine interpreter;
uvis machine-wide, souvx <tool>runs a Python tool from any directory on an interpreter uv fetches, and a project'smise.tomlanduv.lockownpython,ruff,ty,mypy, and its ownuvpin inside its tree.~/.config/uv/.python-version(languages/python-tools.nix) pins 3.13 for everyuvxcall and every Python run outside a project, the newest release each tool row has wheels for, while a project's own.python-versionorrequires-pythonstill decidesuv runanduv syncinside its tree. PyPI command-line tools the machine keeps on PATH are rows ofoverlays/manifest.nixextensions.uv-tools(package, extras, commands, version from annvfetcher.tomlsrc.pypirow, andwithPackagesfor plugin packages installed beside it);languages/python-tools.nixwrites one executable per command that runsuvx [--with <package>==<version>] --from '<package>[<extras>]==<version>' <command>. The rows arenotebooklm-py,trafilatura,pymobiledevice3,ifcquery,psd-tools,psd2svg,opentimelineiowith the Premiere XML, FCPXML, and AAF adapters (otiotool,otioconvert,otiocat,otiostat,otiopluginfo),py-aep(aep-inspect,aep-compare,aep-validate,aep-visualize), and the font toolchain (afdko,fontmakewithpathops,foundrytools-cliasftcli,glyphsLib,hyperglot,nanoemoji,youseedee); each Gemini Notebook profile holds a master token, from which the library mints fresh cookies on use, so no agent refreshes them on a timer.languages/scientific-tools.nixinstalls the native command-line roster; a project owns the native libraries and headers its builds read. - [NODE_DB]: Node, pnpm, and TypeScript are each project's
mise.tomlandpackage.jsonrows; npm command-line tools the machine keeps on PATH are rows ofextensions.npm-tools, andlanguages/node-tools.nixwrites one executable per command that runsnpx --package <package>@<version>on a Nix-store Node no PATH holds (@adobe/aio-cliasaio,@aredotna/cliasarena,@electron/asarasasar,@gltf-transform/cliasgltf-transform,@n8n/cliasn8n-cli,@nexrender/cliasnexrender-cli,hyperframeswithHYPERFRAMES_NO_TELEMETRY=1,@pnp/cli-microsoft365asm365with its scripting settings in~/.config/configstore/cli-m365-config.json,@tavily/cliastvly,bambu-printer-mcpwithBAMBU_MODEL=h2d,cf,chrome-devtools-mcpaschrome-devtools-mcpandchrome-devtools,ctx7, andmcp-remote). PowerShell 7 (pwsh) carriesExchangeOnlineManagement,MicrosoftTeams, andPnP.PowerShellinside its own module folder, soConnect-ExchangeOnline,Connect-MicrosoftTeams, andConnect-PnPOnlineresolve with no gallery fetch; the session cache exportsCLIMICROSOFT365_ENTRAAPPID,CLIMICROSOFT365_TENANT, and the PEMMICROSOFT_AGENT_CERTIFICATEthatm365and each module sign in with app-only. The SQLite extension libraries (sqlean, spatialite, vec) sit behind thesqlite-extendedkernel, theduckdbclient is machine-wide beside it, and thesqlite3client is a project row; eachextensions.duckdb-extensionsrow (excel,fts,httpfs,spatial,sqlite_scanner) is a pinned file linked into~/.duckdb/extensions/v<release>/osx_arm64, where every DuckDB client of that release finds it offline and autoload reaches it;~/.duckdbrcspills to~/.cache/duckdb(64 GiB at most), caps memory at 16 GiB, prints errors as JSON, and runsINSTALL AND LOADfor the rows markedload(excel, whoseCOPY … (FORMAT xlsx)never autoloads, andspatial, which is not autoloadable), so a release with no pinned file downloads them once instead of failing every call; a community extension (markdown,pdal) loads only afterINSTALL <name> FROM community, since the same file linked bare fails DuckDB's signature check. PostgreSQL client tools are Home Manager-owned. - [DOTNET_AEC]: No machine .NET SDK and no machine .NET tool; each repo's mise install owns the SDK its
global.jsonpins and runs its tools throughdotnet dnx <id>. Every SDK installs into one shared root (misedotnet.dotnet_root, the root/etc/dotnet/install_location_arm64names), so a process that capturedDOTNET_ROOTor the root's PATH segment reaches each SDK a laterglobal.jsonnames. Thatdotnetreaches PATH through the mise shim segment of the one PATH vector every session and launchd surface projects, so a login shell, a launchd agent, and a GUI app resolve the pinned SDK without the interactivemise activatehook. - [MISE]: global settings keep project tools reachable from every directory:
auto_install, on by default, keeps the shim directory on PATH: behind the Nix and Homebrew folders on the PATH vector bash, launchd, and GUI apps read, and first in zsh, wheremise hook-env(activate_shims) puts it ahead of the vector and behind a project's own tool directories; a shim runs the version a config in reach selects, else the same command from the rest of PATH (a command this flake installs runs its build), else, throughshims.fallback_to_installed, the newest installed version, andignored_config_pathsstops amise.tomlunder/private/tmpor/private/var/foldersfrom steering a shell. A tool that a project installed therefore runs from~, from a scratch directory, and aftercd <project>inside one command.energyplusandopenstudioare machine runtimes this flake owns with disjoint ambient identities. - [FONTS]:
media-tools/default.nixholds the Perso-Arabic font toolchain:harfbuzz-currentwith the raster, Cairo, vector, GPU, and ICU features (hb-shape,hb-view,hb-raster,hb-vector,hb-subset), release binariesfontc,fontspector,diffenator3anddiff3proof,fontheightbuilt from its crate, nixpkgsshaperglot(shaperglot-cli),fribidi,ots-sanitize,ttfautohint, andgftools,fontforge-current(the 20251009 release with upstream's twoimportlib.metadataplugin-discovery commits, since itspkg_resourcesimport fails on current setuptools), and the uv rows above.pango-view(languages/scientific-tools.nix) runs withPANGOCAIRO_BACKEND=fcunless a caller sets it, so aFONTCONFIG_FILEnaming a folder decides which font renders;hb-viewshapes one direction per line, so mixed Persian and Latin lines go throughpango-view. - [MOTION]:
media-tools/default.nixholds the motion and delivery roster besideffmpeg-full:manim(Manim Community with its TeX closure), OpenImageIO (oiiotool,iinfo,iconvert,idiff,maketx), OpenEXR (exrinfo,exrheader,exrmetrics,exrmultipart), OpenColorIO (ocioconvert,ociocheck,ociobakelut),vhs,asciinemawithagg,gifsicle,freeze(charm-freeze), andauto-editor; thehyperframesandgltf-transformnpm rows and theopentimelineioandpy-aepuv rows complete it, and Remotion stays a project dependency. Casksmrv2(Casks/mrv2.rb) andrive-cli(taprive-app/tap) carry the apps. - [3D_FILES]:
media-tools/default.nixholdsassimp, overlay rowifcconvert(its dylibs kept besideIfcConvertunderlibexec), and twouv run --no-projectwrappers whose versions it reads fromoverlays/_sources/generated.json:blender-asset-tracerrunsbat, which readsVIRTUAL_ENVthatuvxleaves unset and shares its name with the pager, andifctesterrunspython -I -m ifctester, which has no console script.
modules/home/theme.nix owns the palette and serializes it into every visual consumer. modules/home/programs/apps/chords.nix owns the chord vocabulary and projects each row into Karabiner, Zellij, WezTerm, and hint content. The mesh is two layers: every WezTerm window attaches the Zellij session named by its workspace, and each pane is a shell. Zellij tracks what each pane's agent reports (working, needs you, done, failed) and which shell commands run past 10 s: Hyper i opens the inbox, Hyper n focuses the oldest pane of this session that needs the owner, and session, tab, and pane modes hold the mute, watch, and session-history keys. Both bars are one shared instance of this repo's plugin, zellij/statusbar/ (Rust, built for wasm32-wasip1 by pkgsCross), whose palette and mode ribbons are generated from theme.nix and the mode table at build time. The top bar holds the teal TAB [1] 2! 3x group, where a background tab's number carries ! (needs you) or x (failed); ! question in the center while a pane waits, whose frame turns the needs-you color unless an attached client has it focused; and this session's counts (x failed, ● agents working, ○ agents idle, › commands) beside the MAIN session. Each ! blinks through the terminal blink attribute, which WezTerm animates at 400 ms; hovering an element writes its detail at the bottom right, and a click focuses its pane, switches tab, or opens the inbox. Panes stay where they are split (auto_layout false, no swap layouts). atuin records each command (text, directory, exit status, duration, output) and every agent thread through the dev.bsamiee.atuin-daemon agent and syncs them to Atuin Hub. zsh enters atuin pty-proxy before any other init line; the proxy captures output, passes OSC 133 marks to Zellij, follows the shell's directory, and a resurrected shell pane runs that proxy command again under --force-run-commands. Zellij sets each new pane's TERM and COLORTERM (env block). zsh emits OSC 133 prompt and command marks with the command text and OSC 7 directory reports itself, so the inbox lists finished and failed commands and new panes open in the pane's folder. Agent panes resurrect through Zellij's own set-resurrect-command: a hook of each harness runs zellij-agent-resume <harness> (Claude Code and Codex on SessionStart, which also fires on /clear, compaction, and resume; Antigravity on PreInvocation, since its SessionStart skips resumed conversations), which declares claude --resume <id>, codex resume --no-daemon <id>, or agy --remote-control --conversation=<id> for its pane inside an interactive /bin/zsh and saves the session at once. A print or exec run declares nothing. A Claude exit from the prompt (prompt_input_exit) and a Codex SessionEnd clear the declaration only while it still names that session; an Antigravity pane keeps its last conversation until the pane closes. Every other running program comes back as a shell (post_command_discovery_hook prints the shell). Codex sessions attached to its app-server daemon run hooks in the daemon, which owns no pane, so only --no-daemon Codex sessions resurrect. A private tmux -L <name> server, configured by programs.tmux, is the fixed-size headless terminal an agent drives a TUI in; it drops the Zellij pane variables so nothing inside it declares for the outer pane. The editor is Visual Studio Code, outside the mesh: EDITOR and VISUAL name one script on every surface, code-wait, which runs code --wait, a delta file link is a vscode://file/<path>:<line> URL that VS Code's own handler opens from any terminal, and a WezTerm quick-select file:line span runs code --goto on it.
| [INDEX] | [SURFACE] | [STANDARD] |
|---|---|---|
| [01] | Nix | alejandra/deadnix/statix/nixf-diagnose gate via treefmt, statix check via nix flake check. |
| [02] | Shell packaging | writeShellApplication for any body with a runtime closure; writeShellScriptBin for closure-free one-liners. |
| [03] | launchd | Declared agent rows under the label, log, and lifecycle law, each beside the surface it serves. |
Rasm infra/repository-stack.ts table repositories declares this repository's GitHub settings and Doppler project, and mise.toml [env] names that project and its config.
Everything lands declaratively with the first switch; only these steps are manual, each with its proof:
-
Install Determinate Nix via the macOS package — the
curl | shinstaller can die creating the encrypted APFS volume and strand fstab/synthetic.conf residue.- Command:
curl -sSfL https://install.determinate.systems/determinate-pkg/stable/Universal -o determinate.pkg && sudo installer -pkg determinate.pkg -target / - Verify:
nix --versionreports Determinate
- Command:
-
Install the Xcode Command Line Tools and Homebrew via its macOS package — activation's
brew bundlerequiresbrew, the tap and clone below needgit, and Homebrew's ownbrew updatekeeps it on the newest stable tag from then on.- Command:
xcode-select --install, thencurl -sSfL https://github.com/Homebrew/brew/releases/latest/download/Homebrew.pkg -o Homebrew.pkg && sudo installer -pkg Homebrew.pkg -target / - Verify:
/opt/homebrew/bin/brew --versionreports the latest release
- Command:
-
Sign into the 1Password app; enable Settings → Developer → SSH agent + CLI integration. GUI-only by vendor design; key custody syncs from the cloud — zero key handling.
- Verify:
SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ssh-add -Llists the key
- Verify:
-
Clone to the path the deploy rail resolves; the agent socket is explicit until the first switch projects
~/.ssh/config.- Command:
SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock git clone git@github.com:bsamiee/Parametric_Forge.git ~/Developer/Parametric_Forge - Verify: repo present at
~/Developer/Parametric_Forge
- Command:
-
Grant the bootstrap terminal Full Disk Access (System Settings → Privacy & Security) —
universalaccessdefaults writes abort activation without it; move the grant to WezTerm after the first switch.- Verify: from the granted terminal (WezTerm after the move),
head -c 15 ~/Library/Messages/chat.dbprintsSQLite format 3; macOS 27 has no user TCC database at~/Library/Application Support/com.apple.TCC, even to a process holding Full Disk Access, so a protected read is the proof
- Verify: from the granted terminal (WezTerm after the move),
-
First switch — installs the passwordless sudo row every later
redeploy switchrides. Installer-written real files at/etc/pam.d/sudo_localor/etc/nix/nix.custom.conftrip the /etc collision guard: move each aside (.before-nix-darwin) and rerun.- Command:
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#macbook - Verify:
redeploy build
- Command:
-
Authenticate Doppler from the checkout.
- Command:
doppler login - Verify:
doppler me
- Command:
-
Grant the manual permission set. Each row is a TCC or system-extension decision with no declarative path on an unmanaged Mac (System Settings → Privacy & Security unless noted):
[APP_OR_SERVICE] [GRANT] [WHEN] Terminal Full Disk Access Bootstrap only (step 5); remove after WezTerm holds it WezTerm Full Disk Access, Accessibility, Input Monitoring, Screen & System Audio Recording, Developer Tools, App Management After the first switch: the responsible process for zsh, zellij, agents, and redeploy; App Management letscopyAppswrite~/Applications/Home Manager Apps/bin/zshFull Disk Access (the + button, then Cmd-Shift-G /bin/zsh)Before the first menu-recordrun: the job runs through it and fails until it is grantedRemote Login General → Sharing → Remote Login (i) → Allow full disk access for remote users Before an SSH session reads Desktop, Documents, or Downloads Tailscale Sign in as the tailnet owner; allow the VPN configuration and the system extension; tailnet HTTPS is a row of Rasm infra/First launch App Store Sign in Before the switch that installs the App Store apps ( mas installfails without it and the next switch retries)Karabiner-Elements General → Login Items & Extensions → Allow in the Background → the Karabiner-Elements background services on; Driver Extensions → Karabiner-DriverKit-VirtualHIDDevice on; Accessibility → Karabiner-Core-Service (normally also grants Input Monitoring) First launch LinearMouse Accessibility; app Settings → General → Start at login on (the app registers its own login item) First launch 1Password Accessibility; AutoFill & Passwords → 1Password on, Passwords off; app Settings → Developer → SSH agent + CLI Step 3 and first launch Raycast Accessibility First launch CleanShot X Screen & System Audio Recording, Accessibility First launch Claude (desktop) Accessibility, Input Monitoring, Developer Tools First launch Codex + Codex Computer Use Codex: Accessibility, Screen & System Audio Recording, Input Monitoring, Developer Tools, Full Disk Access; Codex Computer Use: Accessibility, Screen & System Audio Recording, Full Disk Access First launch Visual Studio Code Developer Tools, Full Disk Access First launch (integrated terminal parity with WezTerm) Atelier (Rasm) Accessibility, Screen & System Audio Recording; Automation → Atelier → each Adobe app it drives First run of each target watch-app (Rasm) Accessibility, Screen & System Audio Recording, Full Disk Access; Automation → watch-app → each app it quits First command needing each grant; the first run lists it under Full Disk Access Chrome, Arc, Blender, Rhino, Adobe Screen & System Audio Recording First capture prompt; the user-defaults owner keeps the monthly screen-capture hint and alert away afterwards calibre, Discord, new casks Open once, then Privacy & Security → Open Anyway (or the Anywhere confirm, step 9) First launch; Homebrew carries the approval across upgrades Unified log private data open /etc/mobileconfig/unified-log-private-data.mobileconfig, then General → Device Management → Install;sudo log config --statusshowsPRIVATE_DATAAfter the first switch Chrome as default browser Confirm the "change default browser" dialog First switch whose handler reconcile changes http- Verify:
systemextensionsctl listshows Karabiner[activated enabled]; affected agents run without prompting
- Verify:
-
Confirm the one root setting activation cannot write: Privacy & Security → Allow applications from → Anywhere (
sudo spctl --global-disablereveals it and exits 1 until confirmed; the choice lands in a SIP-protected file). Automatic login needs no step:autoLoginUsernames the user, and the home activation writes/etc/kcpasswordfrom 1Password itemMacBook loginwhenever the file is absent, as after a macOS upgrade that drops it.- Verify:
spctl --statusreportsassessments disabled;sysadminctl -autologin statusnames the primary user
- Verify:
Day-2 rebuilds: redeploy switch.
- Format:
nix fmt -- --ci— full proof:nix flake check. - Inputs, in one pass on a clean tree:
sudo determinate-nixd upgrade, thennix flake updateandnix shell .#nvfetcher-current -c nvfetcher -o overlays/_sources -k =(printf '[keys]\ngithub = "%s"\n' "$(gh auth token)")together (zsh=()hands nvchecker a keyfile every check reads), prune each overlay row nixpkgs caught up to and advance the rest (after a failed build,determinate-nixd fix hashes --auto-applyrewrites the dependency hash nvfetcher cannot compute,ctypesgenHash), oneredeploy switch,npm cache npx rm --forceso eachnpm-toolslauncher fetches only its moved pin again, the Homebrew pass, thennh clean all --keep 1.
Every family moves through the ordered update sequence on demand; Homebrew currency runs brew update && brew upgrade && brew cleanup.