nixos-generators/formats/proxmox.nix
James Alseth 4c7b914d1f Add disk-size argument
Many formats generate an image only large enough for the generated NixOS
config. This quickly runs out of space for NixOS servers that are updated
over time rather than being redeployed with fresh images.

Signed-off-by: James Alseth <james@jalseth.me>
2024-02-11 11:47:50 -08:00

15 lines
243 B
Nix

{
modulesPath,
specialArgs,
...
}: {
imports = [
"${toString modulesPath}/virtualisation/proxmox-image.nix"
];
proxmox.qemuConf.diskSize = specialArgs.diskSize or "auto";
formatAttr = "VMA";
fileExtension = ".vma.zst";
}