mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(prox): reisen node config
This commit is contained in:
parent
3053ec927c
commit
bdc353964d
7 changed files with 116 additions and 26 deletions
13
modules/system/proxmox/node.nix
Normal file
13
modules/system/proxmox/node.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{config, lib, gensokyo-zone, ...}: let
|
||||
inherit (gensokyo-zone.lib) mkAlmostOptionDefault;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.proxmox.node;
|
||||
in {
|
||||
options.proxmox.node = with lib.types; {
|
||||
enable = mkEnableOption "Proxmox Node";
|
||||
};
|
||||
config.proxmox.node = {
|
||||
name = mkIf cfg.enable (mkAlmostOptionDefault config.access.hostName);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue