Borrowing it
Nothing to install: this file belongs to joshsymonds/nix-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/joshsymonds/nix-config/main/.claude/skills/building-installers/SKILL.mdgit clone --depth 1 https://github.com/joshsymonds/nix-configWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/joshsymonds/nix-config/building-installers)<a href="https://agentmods.dev/skills/joshsymonds/nix-config/building-installers"><img src="https://agentmods.dev/badge/skills/joshsymonds/nix-config/building-installers/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/joshsymonds/nix-config/building-installers"><img src="https://agentmods.dev/badge/skills/joshsymonds/nix-config/building-installers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01956 |
| Opus 5 | $0.00020 | $0.00978 |
| Sonnet 5 | $0.00008 | $0.00391 |
| Haiku 4.5 | $0.00004 | $0.00196 |
Grade D, and why
building-installers scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo dd if=result/iso/*.iso of=/dev/sdX bs=4M status=progress oflag=direct Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
nix-shell -p ssh-to-age --run 'ssh-to-age --private-key < ~/.ssh/id_ed25519 > /tmp/rekey.agekey' How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building NixOS Installer ISOs
Scope. This skill covers the legacy
autoInstallerflow (label-based ext4, no LUKS, no impermanence, no lanzaboote) — today only ultraviolet uses it. Hosts on the btrfs-impermanence + lanzaboote stack install a different way: gnomon via the kit-partition ISO (modules/installer-iso/,.#installerIso), vermissian from its own running system (scripts/flash-vermissian.sh), stygianlibrary from gnomon (scripts/flash-stygianlibrary.sh). The option table and the agekey step below do not apply to those hosts.
Overview
The modules/installer.nix module creates bootable USB ISOs that auto-partition, format, and install a NixOS host. Each host has a thin wrapper in hosts/<name>/installer.nix setting autoInstaller.* options.
Building an ISO
nix build .#<host>InstallerIso --print-build-logs
Always use --print-build-logs — the build output contains the baked-in SSH public key:
INSTALLER SSH PUBLIC KEY for <host>:
ssh-ed25519 AAAA... <host>-installer
If the host's flake has private repo inputs (e.g. shimmer uses git+ssh://), add this public key as a deploy key on those repos before booting the USB.
Flashing to USB
sudo dd if=result/iso/*.iso of=/dev/sdX bs=4M status=progress oflag=direct
sudo eject /dev/sdX
What Happens on Boot
- NixOS minimal ISO boots, shows ASCII banner on getty
- Auto-install service starts after
network-online.target - Detects target disk (EFI boot entries > ESP heuristic > partition count > largest disk)
- Confirmation prompt via
systemd-ask-password: shows disk info, requires typingyes - Partitions and formats disk with configured labels
- If LUKS: prompts for passphrase via
systemd-ask-password - Mounts root and boot, creates extra dirs
- Clones nix-config repo
- Runs
nixos-install(prebuilt closure or--flakedepending on config) - Powers off (or reboots if
powerOff = false)
Creating an Installer for a New Host
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +9 lines 7204895574b3
- 11d ago First seen · 134 lines · 40 tokens per session scan D 6a24b7dab81f
building-installers is a skill published in the GitHub repository joshsymonds/nix-config (835 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,956 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
deploy-docker-compose
Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…
compute-env-setup
Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.
securing-kubernetes-on-cloud
This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…
detecting-privilege-escalation-in-kubernetes-pods
Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.
implementing-rbac-hardening-for-kubernetes
Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.
docker-socket-mount
Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.