2024-10-15 17:46:44 -04:00
|
|
|
{ config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-11-02 17:19:40 -04:00
|
|
|
networking = {
|
|
|
|
firewall.allowedUDPPorts = [ 51820 ];
|
2024-10-20 15:39:00 -04:00
|
|
|
|
2024-11-02 17:19:40 -04:00
|
|
|
wireguard.interfaces = {
|
|
|
|
"${config.ips.wgInt}" = {
|
|
|
|
# Define IP of client in per device config
|
|
|
|
listenPort = 51820;
|
|
|
|
privateKey = config.secrets.wgClientPriv;
|
|
|
|
peers = [
|
|
|
|
{ # NixOS Server
|
|
|
|
publicKey = "qnOT/lXOJMaQgDUdXpyfGZB2IEyUouRje2m/bCe9ux8=";
|
|
|
|
allowedIPs = [ "${config.ips.wgSpan}.0/24" ];
|
|
|
|
endpoint = "sv.${config.domains.jim1}:51820";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-09-23 13:49:48 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|