Proxmox nodes under tailscale network with reverse proxy

This commit is contained in:
pazpi 2026-04-16 16:22:34 +02:00
parent a67d75e196
commit 5f870d116c
No known key found for this signature in database
3 changed files with 29 additions and 8 deletions

View file

@ -7,12 +7,11 @@ let
# Generate complete colmena host configs (imports + deployment)
mkColmenaHosts = builtins.mapAttrs (name: cfg: {
imports = inputs.self.nixosConfigurations.${name}._module.args.modules;
deployment =
{
targetHost = hosts.${name} or null;
tags = cfg.tags;
}
// (if cfg ? colmenaSshPort then { targetPort = cfg.colmenaSshPort; } else { });
deployment = {
targetHost = hosts.${name} or null;
tags = cfg.tags;
}
// (if cfg ? colmenaSshPort then { targetPort = cfg.colmenaSshPort; } else { });
}) hostDefs;
in