fix(hosts/pi4): Now using networking.wg-quick
module
Instead of `networking.wireguard` which seems to be broken
This commit is contained in:
parent
bae75ef0a4
commit
dff14a180b
1 changed files with 4 additions and 5 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue