Commit 2f7435b5 authored by phaer's avatar phaer
Browse files

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`
parent 61ba0446
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -73,16 +73,18 @@ in
      inherit config lib pkgs;
    };

    fileSystems."/" = {
    fileSystems = lib.mkImageMediaOverride {
      "/" = {
        device = "/dev/disk/by-label/nixos";
        autoResize = true;
        fsType = "ext4";
      };

    fileSystems."/boot" = {
      "/boot" = {
        device = "/dev/disk/by-label/ESP";
        fsType = "vfat";
      };
    };

    boot.growPartition = true;