0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

virtualisation/azure-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 azure --flake .#my-host`
This commit is contained in:
phaer 2025-04-09 16:03:06 +02:00
parent 2f7435b5ca
commit a79571b081

View file

@ -113,7 +113,7 @@ in
''; '';
}; };
fileSystems = { fileSystems = lib.mkImageMediaOverride {
"/" = { "/" = {
device = "/dev/disk/by-label/${cfg.label}"; device = "/dev/disk/by-label/${cfg.label}";
inherit (cfg) label; inherit (cfg) label;