all repos — dotfiles @ 543f1d3002f724cf47508c2b7feb53b2d370fe58

my *nix dotfiles

nix/denna: k3s: correct flags
Anirudh Oppiliappan x@icyphox.sh
Sun, 07 Jul 2024 10:27:07 +0300
commit

543f1d3002f724cf47508c2b7feb53b2d370fe58

parent

90e97419fc0c57e0d5ca9363167389af3f4116cd

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M hosts/denna/configuration.nixhosts/denna/configuration.nix

@@ -83,7 +83,6 @@ };

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";
M hosts/sini/configuration.nixhosts/sini/configuration.nix

@@ -97,9 +97,9 @@

# building only virtualisation.docker.enable = true; - services.k3s = { + services.k3s = let address = "100.85.88.64"; in { 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"; + extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=${address} --node-ip=${address} --node-external-ip=${address}"; }; services.dockerRegistry = {