summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/vpn.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/vpn.nix b/modules/vpn.nix
index 92f6a8e..f90656d 100644
--- a/modules/vpn.nix
+++ b/modules/vpn.nix
@@ -31,7 +31,12 @@ let
};
getPeers = host:
- builtins.map mkPeer (builtins.attrValues (builtins.removeAttrs hosts [host]));
+ if hostConfig.router
+ then
+ builtins.map mkPeer (builtins.attrValues (builtins.removeAttrs hosts [host]));
+ else
+ builtins.map mkPeer hosts.dragon;
+
in
{
options = {