Quick Start (Physical Machine)
This page is the fastest way to install Clan on a physical machine.
If you want explanations or troubleshooting, see the full Getting Started (Physical Machine) guide.
Prerequisites: Nix installed,
~/.ssh/id_ed25519keypair exists, USB drive (≥1.5 GB)
1. Create the Clan
Enter a name (e.g. MY-CLAN-1) and domain (e.g. myclan1.lol). Back up the age key when prompted.
2. Create a Machine Configuration
Edit clan.nix — add under inventory.machines:
3. Add Your SSH Key
Paste the output into the "admin-machine-1" line in clan.nix, replacing PASTE_YOUR_KEY_HERE. Verify with clan show.
4. (Optional) Enable WiFi on Target
Add under inventory.instances in clan.nix:
5. Create Installer USB
Download the installer ISO:
# x86_64
wget https://github.com/nix-community/nixos-images/releases/download/nixos-25.11/nixos-installer-x86_64-linux.iso
# aarch64 (ARM)
# wget https://github.com/nix-community/nixos-images/releases/download/nixos-25.11/nixos-installer-aarch64-linux.iso
Identify your USB device and flash the ISO:
lsblk # identify your USB device (e.g. sdb)
sudo dd if=nixos-installer-x86_64-linux.iso of=/dev/<USB_DEVICE> bs=4M status=progress conv=fsync
6. Boot Target from USB
Boot the target machine from the USB drive. Note the IP address shown on screen, then update clan.nix with it.
No IP? Press Ctrl+C, run
nmtui, connect to WiFi, then Ctrl+D to return.
7. Get Hardware Config
8. Configure Disk
clan templates apply disk single-disk test-machine --set mainDisk ""
# note the disk ID from the error output, then re-run:
clan templates apply disk single-disk test-machine --set mainDisk "/dev/<DISK_ID>"
9. Install
Sandbox error? Run
clan vars generate test-machine --no-sandboxfirst, then retry.
Remove USB before reboot.
10. Connect
Quick Reference: Managing Packages
Add packages in clan.nix under inventory.instances:
packages = {
roles.default.machines."test-machine".settings = {
packages = [ "bat" "btop" "tldr" ];
};
};
Deploy changes:
To remove a package, delete it from the list and run update again.