nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit 7998f6714b69c8ae163b9799b9e7f9d3e3daa24e
parent d8237fa3f37ac0a8ffff24d6858e69a59535b221
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 27 Jan 2024 16:06:00 +0100

meow

Diffstat:
Mnixos/common/lib/confd.nix | 2+-
Mnixos/common/lib/patroni.nix | 6+++---
Mnixos/worker-1/configuration.nix | 4++--
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/nixos/common/lib/confd.nix b/nixos/common/lib/confd.nix @@ -8,7 +8,7 @@ enable = true; nodes = [ "http://10.100.0.1:2379" - "http://10.100.0.2:2379" + "http://10.0.1.2:2379" ]; prefix = "/service/cluster-1"; }; diff --git a/nixos/common/lib/patroni.nix b/nixos/common/lib/patroni.nix @@ -34,7 +34,7 @@ listenPeerUrls = ["http://10.100.0.1:2380"]; initialCluster = [ "worker-1=http://10.100.0.1:2380" - "nordgedanken=http://10.100.0.2:2380" + "nordgedanken=http://10.0.1.2:2380" ]; extraConf = { "UNSUPPORTED_ARCH" = "arm64"; @@ -51,7 +51,7 @@ settings = { postgresql = { - listen = lib.mkForce "127.0.0.1,10.100.0.1:5432"; + listen = lib.mkForce "127.0.0.1,10.100.0.1:5432,10.0.2.1:5432"; parameters = { max_connections = "300"; superuser_reserved_connections = "3"; @@ -115,7 +115,7 @@ etcd = { hosts = [ "10.100.0.1:2379" - "10.100.0.2:2379" + "10.0.1.2:2379" ]; }; tags = { diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -548,7 +548,7 @@ in { 10.100.0.1/32; 10.100.0.0/24; }; - interface "nordgedanken", "worker2", "floating1" { + interface "nordgedanken", "worker2", "floating1" "enp7s0" { type ptp; # VPN tunnels should be point-to-point }; }; @@ -629,7 +629,7 @@ in { advert_int 1 ''; unicastSrcIp = "10.100.0.1"; - unicastPeers = ["10.100.0.2"]; + unicastPeers = ["10.0.2.1"]; virtualIps = [ { addr = "10.100.12.1/24";