Skip to content

Commit

Permalink
Merge pull request #307 from Bert-Proesmans/patch-1
Browse files Browse the repository at this point in the history
Set nixos diskSize option only if specialArgs.diskSize exists
  • Loading branch information
Lassulus authored Mar 4, 2024
2 parents 1c8ead6 + 2ba4060 commit c1590ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions formats/vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit c1590ae

Please sign in to comment.