1
0
Fork 0

Add options for Proxmox and Proxmox VM id

This commit is contained in:
Nicolas Jeannerod 2025-02-24 12:39:49 +01:00
parent 1677c9f8d7
commit 0813eca20c
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8
2 changed files with 26 additions and 0 deletions
infra

View file

@ -2,6 +2,7 @@
let
inherit (lib) mkOption;
inherit (lib.types) types;
in
{
@ -13,6 +14,29 @@ in
'';
};
proxmox = mkOption {
type = types.nullOr (
types.enum [
"procolix"
"fediversity"
]
);
description = ''
The Proxmox instance. This is used for provisioning only and should be
set to `null` if the machine is not a VM.
'';
};
vmId = mkOption {
# REVIEW: There is `types.ints.between` but maybe not `types.ints.above`?
type = types.nullOr (types.addCheck types.int (x: x >= 100));
description = ''
The id of the machine in the corresponding Proxmox. This is used for
provisioning only and should be set to `null` if the machine is not a
VM.
'';
};
domain = mkOption {
description = ''
The domain hosting the machine. Most of the time, this will be either of

View file

@ -1,5 +1,7 @@
{
fediversityVm = {
vmId = 200;
proxmox = "fediversity";
domain = "abundos.eu";
ipv4 = {
address = "95.215.187.200";