From 839eec811c0d36a8c16bbd486fc89f79144a88cb Mon Sep 17 00:00:00 2001 From: xenia Date: Thu, 15 May 2025 15:46:36 +0200 Subject: [PATCH] cave wireguard --- nixos/machines/foxhut/machine.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/machines/foxhut/machine.nix b/nixos/machines/foxhut/machine.nix index 2ed6ddce..3edffbeb 100644 --- a/nixos/machines/foxhut/machine.nix +++ b/nixos/machines/foxhut/machine.nix @@ -68,6 +68,16 @@ in { persistentKeepalive = 25; } ]; }; + interfaces.cave = { + ips = [ "10.234.0.40/32" ]; + privateKeyFile = "/home/xenia/wireguard-keys/förråd.private"; + peers = [ { + publicKey = "yD4kMmoV0wF6H6aI/aQYUwyGKEBdEb7zx4kCq3Ax/D0="; + allowedIPs = [ "10.200.0.0/15" ]; + endpoint = "129.16.13.194:42069"; + persistentKeepalive = 25; + } ]; + }; interfaces.bnuy = { ips = [ "10.100.1.1/32" ]; privateKeyFile = "/home/xenia/wireguard-keys/local-network.private";