diff options
-rw-r--r-- | modules/vpn.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/vpn.nix b/modules/vpn.nix index 8e936d0..c50d773 100644 --- a/modules/vpn.nix +++ b/modules/vpn.nix @@ -9,17 +9,17 @@ let ips = [ "${vpn-prefix}::${ip}/64" ]; publicKey = (builtins.readFile ../secrets/${host}-wireguard-key.pub); endpoint = null; - server = false; + relay = false; }; hosts = { dragon = mkConfig "dragon" "d" // { endpoint = "dragon.orbekk.com:${toString cfg.listenPort}"; - server = true; + relay = true; }; tiny1 = mkConfig "tiny1" "1001" // { endpoint = "tiny1.orbekk.com:${toString cfg.listenPort}"; - server = true; + relay = true; }; firelink = mkConfig "firelink" "2001"; pincer = mkConfig "pincer" "2002"; @@ -27,7 +27,7 @@ let mkPeer = hostConfig: { inherit (hostConfig) publicKey endpoint; - allowedIPs = hostConfig.ips ++ (lib.optionals (hostConfig.server && !cfg.is_server) [ "0.0.0.0/0" "::/0" ]); + allowedIPs = hostConfig.ips ++ (lib.optionals (hostConfig.relay && !cfg.is_server) [ "0.0.0.0/0" "::/0" ]); }; getPeers = host: |