nix-config/modules/radio_wireguard_client.nix
2022-04-30 23:41:33 +02:00

19 lines
454 B
Nix

{ config, ... }:
{
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.wg-quick.interfaces.wg-dvb = {
address = [ "10.13.37.${toString (config.dvb-dump.systemNumber + 100)}/32" ];
privateKeyFile = "/root/wg-seckey";
peers = [{
publicKey = "WDvCObJ0WgCCZ0ORV2q4sdXblBd8pOPZBmeWr97yphY=";
allowedIPs = [ "10.13.37.0/24" ];
endpoint = "academicstrokes.com:51820";
persistentKeepalive = 25;
}];
};
}