No description
Find a file
2026-04-27 14:27:54 -04:00
configuration@44084dfcd7 Add nixos-confi module 2026-04-27 14:15:30 -04:00
.gitignore first commit 2025-10-11 06:55:34 +00:00
.gitmodules turned configuration directory into a git sub module 2026-04-27 10:40:52 -04:00
flake.lock updated flake and added libreoffice 2026-04-21 16:58:27 -04:00
flake.nix Update flake.nix 2025-11-03 20:16:49 -05:00
installer.nix updated flake.lock 2026-02-11 12:58:15 -05:00
LICENSE first commit 2025-10-11 06:55:34 +00:00
README.md Update README.md 2026-04-27 14:27:54 -04:00

nixos-auto-installer

Build recipe for an unattended, offline capable USB-bootable NixOS installer to bootstrap random computers.

I typically use this to "transform" random computers to minimally setup NixOS machines by putting in my USB stick and boot from it. Afterward, the machine can be rebootet and then i can deploy whatever config i want over it from remote via SSH. The system is really just meant as a trampoline for installing "real" system configs from remote.

Usage

Warning: The created USB stick is destructive in the sense that it deletes everything on the disk without asking!

  1. Build the ISO image via nix build git+https://git.ascosilinux.com/vincent/nix-system-iso.git?submodules=1
  2. dd the ISO image over a USB stick
  3. Put the USB stick into a machine that is set up to boot via USB
  4. Let the machine boot and wait until it powers off again. (It typically takes ~5 minutes)
  5. NixOS is now installed. Just SSH into it.

Install in VM for testing

Run nix build git+https://git.ascosilinux.com/vincent/nix-system-iso.git?submodules=1#install-demo && ./result

Installation Scheme

The installer partitions the disk like this:

  • 512 MiB fat32 boot partition
  • 2 GiB swap partition
  • rest size xfs nixos partition

The default user is 'vincent' and the default password is 'password'

Unfree modules for wifi are added in order to enable the machine's wifi on first boot.

Post Install

  • edit /etc/nixos/configuration.nix
  • change the options for:
    • hostname
    • keyboard layout
    • password
    • uncomment user apps.
    • nixos channel "if needed"