nix/sini: k3s: use tailscale ip as node ip
Anirudh Oppiliappan x@icyphox.sh
Wed, 03 Jul 2024 22:16:09 +0300
1 files changed,
20 insertions(+),
19 deletions(-)
jump to
M
hosts/sini/configuration.nix
→
hosts/sini/configuration.nix
@@ -77,29 +77,30 @@
services.pixelfed = { enable = true; domain = "ani.place"; - secretFile = "/home/icy/svc/pixelfed/.env" - nginx.listen = [ - { addr = "0.0.0.0"; - port = "3535"; - } + secretFile = "/home/icy/svc/pixelfed/.env"; + nginx.listen = [ + { + addr = "0.0.0.0"; + port = 3535; + } ]; -}; + }; -# building only -virtualisation.docker.enable = true; + # building only + virtualisation.docker.enable = true; -services.k3s = { -enable = true; -extraFlags = "--disable=traefik --disable=servicelb --disable=metrics-server --bind-address=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"; + }; -services.dockerRegistry = { -enable = true; -listenAddress = "0.0.0.0"; -port = 5000; -}; + services.dockerRegistry = { + enable = true; + listenAddress = "0.0.0.0"; + port = 5000; + }; -nix.settings.experimental-features = [ "nix-command" "flakes" ]; -system.stateVersion = "24.05"; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + system.stateVersion = "24.05"; }