Getting a lot closer..

This commit is contained in:
Jimbo 2024-10-09 03:17:07 -04:00
parent e3bacb2d84
commit 6c524804f0
221 changed files with 856 additions and 956 deletions

View file

@ -1,21 +0,0 @@
{outputs, ...}: {
networking.firewall = {
allowedUDPPorts = [ 51820 ];
};
networking.wireguard.interfaces = {
"${outputs.ips.wgInt}" = {
# Define IP of client in per device config
listenPort = 51820;
privateKey = outputs.secrets.wgClientPriv;
peers = [
{ # 0.0.0.0 makes wg act like a traditional VPN
publicKey = outputs.secrets.wgServerPub;
allowedIPs = [ "0.0.0.0/0" ];
endpoint = "sv.${outputs.secrets.jimDomain}:51820";
persistentKeepalive = 25;
}
];
};
};
}