nix-config/hosts/data-hoarder/wireguard_server.nix

36 lines
888 B
Nix
Raw Normal View History

{ config, ... }:
let
port = 51820;
in
{
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
networking.firewall.allowedUDPPorts = [ port ];
2022-12-30 18:29:13 +01:00
deployment-TLMS.net.wg = {
2022-10-02 21:39:37 +02:00
ownEndpoint.host = "endpoint.dvb.solutions";
ownEndpoint.port = port;
addr4 = "10.13.37.1";
prefix4 = 24;
privateKeyFile = config.sops.secrets.wg-seckey.path;
2022-10-02 21:39:37 +02:00
publicKey = "WDvCObJ0WgCCZ0ORV2q4sdXblBd8pOPZBmeWr97yphY=";
extraPeers = [
2022-04-30 23:41:24 +02:00
{
# Tassilo
publicKey = "vgo3le9xrFsIbbDZsAhQZpIlX+TuWjfEyUcwkoqUl2Y=";
2022-10-02 21:39:37 +02:00
addr4 = "10.13.37.2";
}
2022-04-30 23:41:24 +02:00
{
# oxa
publicKey = "QbaQaGqudRXIh03IbBNATfBZfpMLmwihlwLs6W9+P1c=";
2022-10-02 21:39:37 +02:00
addr4 = "10.13.37.3";
2022-09-25 21:59:17 +02:00
}
{
# marenz
publicKey = "XJddbPj6Zdtn4roi6UWGuR2EA81juMmlaUOuMSLi2FM=";
2022-10-02 21:39:37 +02:00
addr4 = "10.13.37.4";
}
];
};
}