nix/denna: enable k3s
Anirudh Oppiliappan x@icyphox.sh
Sun, 07 Jul 2024 10:08:53 +0300
1 files changed,
7 insertions(+),
5 deletions(-)
jump to
M
hosts/denna/configuration.nix
→
hosts/denna/configuration.nix
@@ -81,11 +81,13 @@ tailscale.enable = true;
# nix-snapshotter.enable = true; }; - # services.k3s = { - # enable = true; - # role = "agent"; - # extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=100.85.88.64 --node-ip=100.85.88.64 --node-external-ip=100.85.88.64"; - # }; + services.k3s = { + enable = true; + extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=100.85.88.64 --node-ip=100.85.88.64 --node-external-ip=100.85.88.64"; + role = "agent"; + serverAddr = "https://sini:6443"; + tokenFile = "/var/lib/rancher/k3s/agent/token"; + }; nix.settings.experimental-features = [ "nix-command" "flakes" ]; system.stateVersion = "24.05";