anywhere - Generic Host Template¶
A bare NixOS server template for bootstrapping new machines via nixos-anywhere. No services, no sops, no home-manager - just enough to boot and SSH in.
Usage¶
-
Copy the template:
-
Set the platform arch in
hosts/nixos/<name>/default.nix: -
Adjust disk config in
hosts/nixos/<name>/disk.nix- set the correct device path. -
Install via nixos-anywhere:
This partitions the disk, installs the system, and reboots - fully unattended.
- Deploy future updates:
What's Included¶
- GRUB with EFI
- NetworkManager
- OpenSSH
virtuser (fromconfig.nix) with SSH keys- zsh shell
- Nix settings (latest nix, GC, caches)
What to Add¶
For production hosts, import the relevant modules: