mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
22 lines
464 B
Nix
22 lines
464 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";
|
|
};
|
|
};
|
|
}
|