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"; }