17 lines
372 B
Nix
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;
|
|
}
|
|
|