diff options
| author | Luke Granger-Brown <git@lukegb.com> | 2021-08-01 18:59:08 +0000 |
|---|---|---|
| committer | Silvan Mosberger <contact@infinisil.com> | 2021-08-03 02:47:14 +0200 |
| commit | 2194711ae07e7bf51d7937fa2bd1a6ea0d292c1a (patch) | |
| tree | 032ae03734f856dc145a28168e6dbbbc7497cbed | |
| parent | vbox-image: add new option to set free space in image (diff) | |
| download | nixpkgs-2194711ae07e7bf51d7937fa2bd1a6ea0d292c1a.tar.gz | |
nixos/virtualbox-image: cast baseImageFreeSpace into str
This fixes an evaluation error that's blocking the nixos-unstable
channel (#132328).
(cherry picked from commit b5fab53628e8f080bae24ea1396f72d9d21e1f9b)
| -rw-r--r-- | nixos/modules/virtualisation/virtualbox-image.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/virtualbox-image.nix b/nixos/modules/virtualisation/virtualbox-image.nix index d31921f95ea6..cd356b9d3823 100644 --- a/nixos/modules/virtualisation/virtualbox-image.nix +++ b/nixos/modules/virtualisation/virtualbox-image.nix @@ -124,7 +124,7 @@ in { inherit pkgs lib config; partitionTableType = "legacy"; diskSize = cfg.baseImageSize; - additionalSpace = cfg.baseImageFreeSpace; + additionalSpace = "${toString cfg.baseImageFreeSpace}M"; postVM = '' |
