From 0da72e951387f8d91268302a5f6e5655786aecd2 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 5 Oct 2025 12:35:10 +0200 Subject: [PATCH] Update NixOS readme --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3879a67..09f6f17 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,15 @@ # nixos -My NixOS config +## Set up virtual machine ([`disko`](https://github.com/nix-community/disko/blob/master/docs/interactive-vm.md)) + +1. Build the virtual machine ``` -git clone https://git.hektormisplon.xyz/hektor/nix.git -cd nix -sudo nix --experimental-features "nix-command flakes" run 'github:nix-community/disko/latest#disko-install' -- --flake .#vm --disk root /dev/vda +nix run -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko' +``` + +2. Run the virtual machine + +``` +QEMU_KERNEL_PARAMS=console=ttyS0 ./result/bin/run-nixos-vm -nographic; reset ```