S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
linux 2026-11-30

Install NixOS 26.11 on a VM: One Config File Is the System

Companion to the video

This guide is a companion to the video Install NixOS 26.11 on a VM: One Config File Is the System, which is the starting point for everything below. The video walks through installing NixOS 26.11 Zokor on a virtual machine with the official minimal-ISO manual method, from partitioning to the first verified boot of generation one. The automatic captions download failed with a rate-limit error, so this guide treats the video description plus the narration script as the transcript-equivalent, with the tested research notes supplying every command below.

Added research in this guide comes from the official NixOS manual and hands-on test notes, and it is kept separate from what the video demonstrates. For release background, see NixOS 26.11 Zokor release. NixOS 26.11 Zokor was released on 2026-11-28, and the 26.11 release notes list the Zokor release. The terminal frames in this guide recreate the tested output.

What you need

Get the official minimal ISO

Download the ISO from the official download page or directly from the channel, alongside its published checksum file. The exact commands used in testing were:

Simulated terminal recreated from the test run showing the ISO checksum matching the published value with the target disk identified
Simulated terminal recreated from the test run showing the ISO checksum matching the published value with the target disk identified (Still from the walkthrough video.)

Only boot the ISO if the computed hash matches the published hash. In the tested install the ISO checksum matched the published .sha256 file. Boot the VM from the ISO and it drops you at a root shell on the installer console.

Warning: the next steps erase the disk

Everything from partitioning onward is destructive to the target disk. The parted, mkfs.fat, mkswap, and mkfs.ext4 commands below destroy all data on the disk you point them at, which is why this guide targets a throwaway virtual machine disk. Confirm your VM disk device, shown here as /dev/sda, before running any of them.

Partition, format, and mount

The tested layout is GPT with a 1 GB ESP, 4 GB of swap, and the rest for root, booted with systemd-boot. Partition first:

Then format the three partitions:

Then mount root at /mnt with the ESP at /mnt/boot:

Declare the system in one config file

Generate the starter configuration with nixos-generate-config --root /mnt, then edit /mnt/etc/nixos/configuration.nix. This single file is the whole system, and the tested install declared:

Simulated terminal recreated from the test run showing the generated configuration with systemd-boot, the hostname, and SSH enabled
Simulated terminal recreated from the test run showing the generated configuration with systemd-boot, the hostname, and SSH enabled (Still from the walkthrough video.)

Substitute your own hostname and your own SSH public key. In testing, the generated hardware-configuration.nix was kept as generated and only configuration.nix was edited.

Install and reboot

Run the installer with nixos-install --no-root-passwd and then reboot. The install downloads the whole system and builds your first generation, which takes several minutes and is shortened in the video. In the tested install it fetched 712 store paths, installed systemd-boot to the ESP, and finished with installation finished!. Detach the ISO so the first boot comes off the virtual disk.

Verify generation one

Log back in over SSH with key-only root login and confirm the installed system:

Simulated terminal recreated from the test run showing SSH into the new host with the version check confirming 26.11 Zokor
Simulated terminal recreated from the test run showing SSH into the new host with the version check confirming 26.11 Zokor (Still from the walkthrough video.)

In the tested install, nixos-version reported 26.11beta506.113c61690ba6 (Zokor), nixos-rebuild list-generations showed generation 1 marked current with kernel 6.18.65, and systemctl is-system-running reported running. One honest disclosure: the tested channel build string still carries a beta tag, while stable 26.11 reports a dated version instead, and the config and steps are identical either way.

What this guide did not test

Back up /etc/nixos/configuration.nix because it is your installer. Change it, rebuild, and the machine follows.

Watch the walkthrough

Watch on YouTube

Webster the press owl — click to chat