Skip to content

Instantly share code, notes, and snippets.

@tarnacious
tarnacious / build-qcow2.nix
Last active August 7, 2025 04:33
Build a bare bones bootable nixos qcow2 image suitable for running with libvirt/qemu/kvm.
{ config, lib, pkgs, ... }:
with lib;
{
imports =
[
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
./machine-config.nix
];