mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-29 09:58:45 +02:00
19 lines
454 B
Nix
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;
|
|
}];
|
|
|
|
};
|
|
}
|