diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-08-28 17:31:06 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-08-28 17:31:06 -0400 |
commit | 768cf3e255cfb8859cba90f8b639e7cc3a0bd8ed (patch) | |
tree | c02531cea2caf1afdc4072fd47e6dc3f5c8fef8f /modules | |
parent | 88c2e3871cde483a3959b5c4c22cf3274b295f33 (diff) |
update config
Diffstat (limited to 'modules')
-rw-r--r-- | modules/vpn.nix | 7 |
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 = { |