virtualisation/google-compute-config: use mkImageMediaOverride...

...for filesystem and bootloader options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant google-compute-config --flake .#my-host`
This commit is contained in:
phaer 2025-04-11 11:38:05 +02:00
parent bf2b3f0286
commit 6f83796aa5

View file

@ -21,7 +21,7 @@ in
../profiles/qemu-guest.nix
];
fileSystems."/" = {
fileSystems."/" = lib.mkImageMediaOverride {
fsType = "ext4";
device = "/dev/disk/by-label/nixos";
autoResize = true;