ma wireguard: add thierry wg setup

This commit is contained in:
makefu 2022-09-23 23:45:15 +02:00
parent bdcae6e274
commit 9c949ce581
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -0,0 +1,21 @@
{ lib, ... }:
{
networking.wireguard.interfaces.thierry-wg = {
ips = [ "172.27.66.10/24" ]; # TODO: not dnyamic
privateKeyFile = (toString <secrets>) + "/wg-thierry.key";
allowedIPsAsRoutes = true;
# explicit route via eth0 to gum
peers = [
{
endpoint = "thierryhome.duckdns.org:51820";
allowedIPs = [ "172.27.66.0/24" ];
publicKey = "filYuG/xbb2YW8WT0xT26rzeZ/ZiM6NLnbxbsCR9rS0=";
persistentKeepalive = 25;
}
#{
# allowedIPs = [ "172.27.66.3/32" ];
# publicKey = "cDIf14LH4qleXNo889lS2ATIqDx9r//JNCkhHlHgc1Q=";
#}
];
};
}