feat(prox): reisen node config

This commit is contained in:
arcnmx 2024-04-16 16:22:02 -07:00
parent 3053ec927c
commit bdc353964d
7 changed files with 116 additions and 26 deletions

View 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);
};
}