Config to install all needed for a dedicated ai coding box based of nix.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marvin8 89d7c443eb
All checks were successful
ci / gitleaks (push) Successful in 10s
Update default.nix
2026-09-17 13:17:02 +10:00
.forgejo/workflows 👷 ci: gitleaks on zhuiri 2026-09-07 10:42:00 +10:00
hosts/ai-coding-box Update default.nix 2026-09-17 13:17:02 +10:00
installer 🐛 fix: inject tailscale authkey at build via env, not git index 2026-09-07 10:27:58 +10:00
.gitignore 🔧 chore: scaffold repo with gitleaks guard 2026-09-07 09:52:18 +10:00
.pre-commit-config.yaml 🔧 chore: scaffold repo with gitleaks guard 2026-09-07 09:52:18 +10:00
AGENTS.md 🎉 Setting up AI coding box based on NixOS 2026-09-07 09:05:46 +10:00
ai-coding-box-devbox.json 🔧 chore: drop pre-commit and uv from agent devbox 2026-09-07 13:08:27 +10:00
flake.lock feat: add flake with ai-coding-box host and disko layout 2026-09-07 10:03:27 +10:00
flake.nix feat: add beacon installer ISO 2026-09-07 10:22:38 +10:00
global-AGENTS.md 🎉 Setting up AI coding box based on NixOS 2026-09-07 09:05:46 +10:00
INSTALL.md 📝 docs: ~/wip repo convention on both machines 2026-09-07 13:57:36 +10:00
README.md 📝 docs: ~/wip repo convention on both machines 2026-09-07 13:57:36 +10:00
SETUP.md 📝 docs: restic secret provisioning + first-run verification in SETUP.md 2026-09-08 09:15:14 +10:00
tailscale-policy.hujson 🐛 fix: exit-node policy test used autogroup:internet, invalid in tests 2026-09-07 11:17:36 +10:00

ai-coding-box

NixOS configuration for the Intel NUC5i5RHY coding station (headless, Tailscale-SSH-only, isolated VLAN) plus the custom installer ISO that provisions it.

Updating the box

All changes flow through this repo — edit hosts/ai-coding-box/ (or ai-coding-box-devbox.json for agent tooling), merge via PR, then on the box. All repos live in ~/wip on both machines — on the box the clone is at ~/wip/ai-coding-box:

cd ~/wip/ai-coding-box
git pull
sudo nixos-rebuild switch --flake .#ai-coding-box

Never rebuild from /etc/nixos — the configuration.nix there is an unused leftover from nixos-generate-config and does not describe this system.

Latest package versions — bump the flake lock, then rebuild:

cd ~/wip/ai-coding-box
git pull
nix flake update
sudo nixos-rebuild switch --flake .#ai-coding-box
git add flake.lock && git commit -m ":arrow_up: chore: bump flake lock"
git push forge-pi <branch>   # via PR, as usual

Agent toolchain (ai-coding-box-devbox.json): devbox update in ~, then commit the updated devbox.lock via PR.

Next NixOS release (e.g. 26.11) — repoint the input at the new channel, update the lock, rebuild:

  1. In flake.nix, change nixpkgs.url from github:NixOS/nixpkgs/nixos-26.05 to github:NixOS/nixpkgs/nixos-26.11.
  2. nix flake update nixpkgs
  3. sudo nixos-rebuild switch --flake .#ai-coding-box

Leave system.stateVersion in hosts/ai-coding-box/default.nix at "26.05" — it is a migration marker for state layout, not the release the system tracks. Read the NixOS release notes and the manual's upgrading section before the rebuild, and keep the old generation around until you have verified the new one (the previous generation remains bootable from the systemd-boot menu).