feat: better configuration

This commit is contained in:
2024-10-08 13:53:33 -04:00
parent b33aa3def8
commit 57b1310a7c

View File

@@ -47,8 +47,8 @@
role = "server"; role = "server";
tokenFile = config.age.secrets.k3s.path; tokenFile = config.age.secrets.k3s.path;
clusterInit = meta.hostname == "premhome-falcon-1"; clusterInit = meta.hostname == "premhome-falcon-1";
serverAddr = if meta.hostname == "premhome-falcon-1" then "" else "https://premhome-falcon-1:6444"; serverAddr = if meta.hostname == "premhome-falcon-1" then "" else "https://premhome-falcon-1:6443";
extraFlags = ["--disable=servicelb" "--disable=traefik" ]; extraFlags = ["--disable=servicelb" "--disable=traefik" "--node-ip" meta.ip ];
}; };
networking.firewall.trustedInterfaces = [ "tailscale0" ]; networking.firewall.trustedInterfaces = [ "tailscale0" ];