fix(hosts/pi4): Now using networking.wg-quick module

Instead of `networking.wireguard` which seems to be broken
This commit is contained in:
GaspardCulis 2024-11-06 01:02:16 +01:00
parent bae75ef0a4
commit dff14a180b

View file

@ -48,23 +48,22 @@
networking.firewall = { networking.firewall = {
allowedUDPPorts = [51820]; allowedUDPPorts = [51820];
}; };
networking.wireguard.interfaces = { networking.wg-quick.interfaces = {
wg0 = { wg0 = {
ips = ["10.8.0.31/24"]; address = ["10.8.0.31/32"];
listenPort = 51820; # Should match firewall allowedUDPPorts listenPort = 51820; # Should match firewall allowedUDPPorts
privateKeyFile = config.sops.secrets."wireguard/private_key".path; privateKeyFile = config.sops.secrets."wireguard/private_key".path;
peers = [ peers = [
{ {
publicKey = "KLULII6VEUWMhyIba6oxxHdZsVP3TMVlNY1Vz49q7jg="; publicKey = "KLULII6VEUWMhyIba6oxxHdZsVP3TMVlNY1Vz49q7jg=";
allowedIPs = ["0.0.0.0/0"]; allowedIPs = ["0.0.0.0/0"];
endpoint = "vpn.gasdev.fr:993"; endpoint = "vpn.gasdev.fr:993";
persistentKeepalive = 25; persistentKeepalive = 25;
} }
]; ];
}; };
}; };
system.stateVersion = "24.11";
} }