Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Storage Options in proxmox.nix #387

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion formats/proxmox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@
"${toString modulesPath}/virtualisation/proxmox-image.nix"
];

proxmox.qemuConf.diskSize = specialArgs.diskSize or "auto";
proxmox = {
qemuConf = {
diskSize = specialArgs.diskSize or "auto";

# Configuration for the default virtio disk. It can be used as a cue for PVE to autodetect the target storage.
# This parameter is required by PVE even if it isn't used.
virtio0 = specialArgs.virtio0 or "local-lvm:vm-9999-disk-0";
};
cloudInit = {
enable = specialArgs.cloudInitEnable or true;
defaultStorage = specialArgs.cloudInitDefaultStorage or "local-lvm";
device = specialArgs.cloudInitDevice or "ide2";
};
};

formatAttr = "VMA";
fileExtension = ".vma.zst";
Expand Down