NixOS ISO image that automatically connects to Tailscale with auth key
- Nix
- Flakes & Nix command need to be enabled
- It's recommended to use nix-installer instead of the official installer
- This installer automatically enables flakes and nix command
- Tailscale account
-
Create auth key on Tailscale
-
Run
# impure option is required to read the environment variables
$ TAILSCLAE_AUTH_KEY=<your auth key> nix build --impure
$ ls ./result/iso
nixos.iso