From dba66f1174f4838344cd3e4651d2685a4d076614 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Tue, 14 May 2024 16:59:35 +0200 Subject: [PATCH] apply wireguard patches --- modules/services/wireguard.nix | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/modules/services/wireguard.nix b/modules/services/wireguard.nix index 3a4934e..6ff1c26 100644 --- a/modules/services/wireguard.nix +++ b/modules/services/wireguard.nix @@ -46,12 +46,26 @@ in lib.mkIf cfg.enable { ]; publicKey = "Eg5ZS3zN05mJ/gct6wJlwVAHTlXpkhxFfUd7yscANV0="; } + # detschn pc { allowedIPs = [ "192.168.2.4/32" ]; publicKey = "8Eigfs+k2k2WPaMn+SqDmlSHdMv+I+xcBr/2qhtpGzI="; } + # detschn laptop + { + allowedIPs = [ + "192.168.2.5/32" + ]; + publicKey = "g5uTlA1IciXgtSbECjhVis0dajRAc53Oa7Hz6dUI+0Q="; + } + { + allowedIPs = [ + "192.168.2.6/32" + ]; + publicKey = "5ClF2HcqndpXS7nVgDn2unWFUYcKo5fbudV6xX2OIVE="; + } # handy { allowedIPs = [ @@ -91,18 +105,6 @@ in lib.mkIf cfg.enable { ]; publicKey = "AGBWzMeSTxmB3jwNdROYHbyiqhhAVyofMV5Ku5JIE1A="; } - { - allowedIPs = [ - "192.168.2.5/32" - ]; - publicKey = "g5uTlA1IciXgtSbECjhVis0dajRAc53Oa7Hz6dUI+0Q="; - } - { - allowedIPs = [ - "192.168.2.6/32" - ]; - publicKey = "5ClF2HcqndpXS7nVgDn2unWFUYcKo5fbudV6xX2OIVE="; - } ]; privateKeyFile = config.age.secrets.wireguard-private.path; };