ctucx.git: nixfiles

ctucx' nixfiles

commit 3112c5b1e93e792fecc1a92c77e5b45d1fa5471b
parent fdc8ca3ec8419ce57a2d35e7a962a7476b5a805c
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 12 Mar 2025 19:00:32 +0100

nodes/wanderduene: add route on wg-interface, delete address on wg-interface
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/nodes/wanderduene/default.nix b/nodes/wanderduene/default.nix
@@ -112,7 +112,7 @@
 
         wireguardPeers = [{
           PublicKey           = "nvyhYuWJl/dKyV/2+bDrUisvL3mi38PsNzfdIDDwSjY=";
-          AllowedIPs          = [ "172.17.0.0/24" "2a03:4000:4d:5e:acab::/112" ];
+          AllowedIPs          = [ "2a03:4000:4d:5e:acab::/112" ];
           PersistentKeepalive = 10;
         }];
       };

@@ -120,7 +120,9 @@
       networks."20-wg0" ={
         matchConfig.Name = "wg0";
 
-        address = [ "2a03:4000:4d:5e:acab::100/112"];
+        routes  = [{
+          Destination = "2a03:4000:4d:5e:acab::/112";
+        }];
       };
     };