virtualisation/virtualbox-image: use mkImageMediaOverride...

...for filesystem and 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 virtualbox --flake .#my-host`
This commit is contained in:
phaer 2025-04-09 12:27:04 +02:00
parent 864030e5e8
commit 4327e179f7

View file

@ -275,7 +275,7 @@ in
};
fileSystems =
{
lib.mkImageMediaOverride {
"/" = {
device = "/dev/disk/by-label/nixos";
autoResize = true;