mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
Set nixos diskSize option only if specialArgs.diskSize exists
This commit is contained in:
parent
2c9562e762
commit
2ba4060480
@ -10,9 +10,7 @@ in {
|
||||
"${toString modulesPath}/virtualisation/qemu-vm.nix"
|
||||
];
|
||||
|
||||
virtualisation.diskSize =
|
||||
if diskSize == "auto" then null
|
||||
else lib.strings.toIntBase10 diskSize;
|
||||
virtualisation.diskSize = lib.mkIf (diskSize != "auto") (lib.strings.toIntBase10 diskSize);
|
||||
|
||||
formatAttr = "vm";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user