mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
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>
15 lines
243 B
Nix
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";
|
|
}
|