From dff14a180bb1a0f2e35b977aaadda0e35d8ee782 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Wed, 6 Nov 2024 01:02:16 +0100 Subject: [PATCH] fix(hosts/pi4): Now using `networking.wg-quick` module Instead of `networking.wireguard` which seems to be broken --- hosts/pi4/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hosts/pi4/default.nix b/hosts/pi4/default.nix index df87e69..f747909 100644 --- a/hosts/pi4/default.nix +++ b/hosts/pi4/default.nix @@ -48,23 +48,22 @@ networking.firewall = { allowedUDPPorts = [51820]; }; - networking.wireguard.interfaces = { + networking.wg-quick.interfaces = { wg0 = { - ips = ["10.8.0.31/24"]; + address = ["10.8.0.31/32"]; listenPort = 51820; # Should match firewall allowedUDPPorts - privateKeyFile = config.sops.secrets."wireguard/private_key".path; peers = [ { publicKey = "KLULII6VEUWMhyIba6oxxHdZsVP3TMVlNY1Vz49q7jg="; - allowedIPs = ["0.0.0.0/0"]; - endpoint = "vpn.gasdev.fr:993"; persistentKeepalive = 25; } ]; }; }; + + system.stateVersion = "24.11"; }