From 768cf3e255cfb8859cba90f8b639e7cc3a0bd8ed Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sun, 28 Aug 2022 17:31:06 -0400 Subject: update config --- modules/vpn.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules') 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 = { -- cgit v1.2.3