diff --git a/modules/wireguard-client/default.nix b/modules/wireguard-client/default.nix index c15bb1d..e02a34a 100644 --- a/modules/wireguard-client/default.nix +++ b/modules/wireguard-client/default.nix @@ -7,20 +7,13 @@ networking.wireguard.interfaces.wg0 = { ips = ["${vpn.${config.networking.hostName}.ip}/32"]; - # TODO having two peers like this a good idea? (they are the same host) peers = [ { - publicKey = vpn.sisko.publicKey; # FIXME hardcoding `sisko` here + publicKey = vpn.sisko.publicKey; allowedIPs = ["10.100.0.0/24"]; endpoint = "vpn.aciceri.dev:51820"; persistentKeepalive = 25; } - { - publicKey = vpn.sisko.publicKey; # FIXME hardcoding `sisko` here - allowedIPs = ["10.100.0.0/24"]; - endpoint = "10.1.1.2:51820"; - persistentKeepalive = 25; - } ]; }; }