Updated VPN addresses

This commit is contained in:
Tim Schubert 2022-04-10 14:20:56 +02:00
parent f7f6d03ee2
commit 04ee4a1507
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 5 additions and 5 deletions

View file

@ -36,12 +36,12 @@ in
networking.wireguard.interfaces."wg0" = {
allowedIPsAsRoutes = true;
privateKeyFile = "/var/lib/wireguard/wg0-key";
ips = [ "fd42:dead:beef:1337::0/64" ];
ips = [ "fd42:9c3b:f96d:0200::0/64" ];
listenPort = 51234;
peers = map
(peer: (
{
allowedIPs = [ "fd42:dead:beef:1337::${peer.id}/128" ];
allowedIPs = [ "fd42:9c3b:f96d:0200::${peer.id}/128" ];
publicKey = peer.key;
}))
(attrValues cfg.peers);