NixOS and niri on two ThinkPads, and NixOS on a headless Proxmox VM. Program directories mirror paths under
$HOME; modules in home/ install them.
This is a mirror of my private repo.
- The Claude Code and Codex defaults turn off permission prompts, and Codex's sandbox too. On the disposable headless VM that runs them as an unprivileged user, that's what I want. On your own machine it probably isn't.
- Running disko with
nixos/disk.nixerases the target disk. - The config expects my username, my home paths and my Forgejo server. Change them first.
~/.ssh/config.localholds my SSH hosts.~/.dictate-termsadds words to thedictatetranscription prompt.
oren is the headless VM. Install it from the NixOS installer ISO, as root:
-
Check the target disk. disko erases
/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0, the VM'sscsi0; confirm it withlsblkandls -l /dev/disk/by-id/. -
Partition and mount it, then put root's clone at
/srv/dotfileson the new system and install from it:export NIX_CONFIG='experimental-features = nix-command flakes' nix-shell -p git --run 'git clone <repo-url> /tmp/dotfiles' nix run github:nix-community/disko -- --mode destroy,format,mount --flake /tmp/dotfiles#oren nix-shell -p git --run 'git clone <repo-url> /mnt/srv/dotfiles' nixos-install --flake /mnt/srv/dotfiles#oren reboot
-
Log in as root over SSH. Write the Forgejo and GitHub tokens to
~agent/.forgejo-tokenand~agent/.github-token, owned byagent, mode 600. Rundots, thensystemctl restart home-manager-agentso the activation logsteaandghin and reruns the agent setup. -
Pair a T3 Code client with
su - agent -c t3pair.