Files
first/hw.nix
2025-08-26 21:38:27 +02:00

17 lines
372 B
Nix

{ 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;
}