This commit is contained in:
2025-08-26 18:33:56 +02:00
parent 4b06060222
commit 6e5dea6b65
9 changed files with 211 additions and 2 deletions

16
hw.nix Normal file
View File

@@ -0,0 +1,16 @@
{ lib, ... }:
{
# Let the image format own the root FS mapping
fileSystems."/" = lib.mkForce {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
# Make the image self-booting under libvirt
# virtualisation.useBootLoader = true;
boot.loader.grub.device = "/dev/vda";
# Optional: auto-grow root at first boot
boot.growPartition = true;
}