infrastructure/modules/system/proxmox/vm.nix
2024-05-13 15:31:34 -07:00

26 lines
472 B
Nix

{
config,
lib,
...
}: let
inherit (lib.options) mkOption mkEnableOption;
cfg = config.proxmox;
in {
options.proxmox = with lib.types; {
enabled = mkOption {
type = bool;
default = cfg.vm.enable || cfg.container.enable;
readOnly = true;
};
vm = {
enable = mkEnableOption "QEMU VM";
id = mkOption {
type = int;
};
};
node.name = mkOption {
type = str;
default = "reisen";
};
};
}