virtualisation/hyperv-image: use mkImageMediaOverride...
...for filesystem 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 hyperv --flake .#my-host`
This commit is contained in:
@@ -73,15 +73,17 @@ in
|
|||||||
inherit config lib pkgs;
|
inherit config lib pkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems = lib.mkImageMediaOverride {
|
||||||
device = "/dev/disk/by-label/nixos";
|
"/" = {
|
||||||
autoResize = true;
|
device = "/dev/disk/by-label/nixos";
|
||||||
fsType = "ext4";
|
autoResize = true;
|
||||||
};
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-label/ESP";
|
device = "/dev/disk/by-label/ESP";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.growPartition = true;
|
boot.growPartition = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user