From b637a518646ae2147403f01bd9ee250381bd8de0 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 4 Oct 2025 00:11:22 +0200 Subject: Factor out common public VPN peers to own module Signed-off-by: Mel --- machines/truite/default.nix | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'machines/truite') diff --git a/machines/truite/default.nix b/machines/truite/default.nix index 9670da2..f8dbaaa 100644 --- a/machines/truite/default.nix +++ b/machines/truite/default.nix @@ -3,6 +3,7 @@ { imports = [ ../../modules/common.nix + ../../modules/vpn.nix ./hardware.nix ./devices.nix @@ -24,27 +25,7 @@ ]; }; - wireguard.server = { - enable = true; - externalInterface = "eth0"; - - peers = { - mel = { - key = "vnZoHXapCLLUhZ8A8R5W0iJ8LpWVLve29z41kkoT0BU="; - ip = 2; - }; - - andrei = { - key = "qqU4uYImLfUohIwl4KBshPtTINFcs0JVALjbmwpfxRg="; - ip = 3; - }; - - sergo = { - key = "qbZGMNIDZFCJC6SHtlyNIlIdGWHELceXClJCcagrj2Y="; - ip = 4; - }; - }; - }; + wireguard.server.externalInterface = "eth0"; }; system.stateVersion = "25.05"; -- cgit 1.4.1