From 519dacccc1280b9448e52bf9905b12e5c750b474 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Tue, 25 Jun 2024 10:11:17 +0200 Subject: [PATCH] chore: add wireguard tunnel for camille --- machines/lisa/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/machines/lisa/default.nix b/machines/lisa/default.nix index bd94728..b4ea2ef 100644 --- a/machines/lisa/default.nix +++ b/machines/lisa/default.nix @@ -46,7 +46,7 @@ networkConfig.DHCP = "yes"; linkConfig.RequiredForOnline = "routable"; }; - wg0 = { + "30-wg0" = { matchConfig.Name = "wg0"; address = [ "10.100.45.1/24" @@ -60,7 +60,7 @@ }; netdevs = { - "50-wg0" = { + "10-wg0" = { netdevConfig = { Kind = "wireguard"; Name = "wg0"; @@ -77,6 +77,13 @@ AllowedIPs = [ "10.100.45.2/32" ]; }; } + { + wireguardPeerConfig = { + PublicKey = "ElVrxNiYvV13hEDtqZNw4kLF7UiPTXziz8XgqABB0AU="; + AllowedIPs = [ "10.100.45.3/32" ]; + }; + } + ]; }; };