about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorJake Schurch <jakeschurch@gmail.com>2023-07-30 12:01:03 -0400
committerJake Schurch <jakeschurch@gmail.com>2023-07-30 12:01:03 -0400
commita4797351620f3bf45c234a886b8ef413cd3e8c36 (patch)
tree5af77dbf10799d3817065d80c66eb22d1aa36502 /nixos/modules/virtualisation
parentd780bdf308c8f6900c5ec09eaeb650a1d15cd427 (diff)
downloadnixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.tar
nixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.tar.gz
nixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.tar.bz2
nixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.tar.lz
nixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.tar.xz
nixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.tar.zst
nixlib-a4797351620f3bf45c234a886b8ef413cd3e8c36.zip
respond to pr feedback
Signed-off-by: Jake Schurch <jakeschurch@gmail.com>
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/proxmox-image.nix14
1 files changed, 2 insertions, 12 deletions
diff --git a/nixos/modules/virtualisation/proxmox-image.nix b/nixos/modules/virtualisation/proxmox-image.nix
index 2685660fc922..946bf14ebf7f 100644
--- a/nixos/modules/virtualisation/proxmox-image.nix
+++ b/nixos/modules/virtualisation/proxmox-image.nix
@@ -94,15 +94,6 @@ with lib;
           Expect guest to have qemu agent running
         '';
       };
-
-      additionalDiskSize = lib.mkOption {
-        type = lib.types.str;
-        default = "512M";
-        description = lib.mdDoc ''
-          Additional disk space to be added to the image.
-          Defaults to 512M (Megabytes), Suffix can also be specified with `G` (gigabyte) or `K` (kilobyte).
-        '';
-      };
     };
     qemuExtraConf = mkOption {
       type = with types; attrsOf (oneOf [ str int ]);
@@ -126,7 +117,7 @@ with lib;
       defaultText = lib.literalExpression ''if config.proxmox.qemuConf.bios == "seabios" then "legacy" else "efi"'';
       example = "hybrid";
     };
-    additionalDiskSpace = mkOption {
+    additionalSpace = mkOption {
       type = types.str;
       default = "512M";
       description = lib.mdDoc ''
@@ -184,8 +175,7 @@ with lib;
     ];
     system.build.VMA = import ../../lib/make-disk-image.nix {
       name = "proxmox-${cfg.filenameSuffix}";
-      inherit partitionTableType;
-      additionalSpace = config.proxmox.additionalDiskSpace;
+      inherit (cfg) partitionTableType additionalSpace;
       postVM = let
         # Build qemu with PVE's patch that adds support for the VMA format
         vma = (pkgs.qemu_kvm.override {