Merge pull request #307 from Bert-Proesmans/patch-1

Set nixos diskSize option only if specialArgs.diskSize exists
This commit is contained in:
lassulus 2024-03-04 08:29:50 +07:00 committed by GitHub
commit c1590ae686
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";
}