summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/router.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/router.nix b/modules/router.nix
index 3199e96..8cc6d70 100644
--- a/modules/router.nix
+++ b/modules/router.nix
@@ -328,15 +328,16 @@ in {
privateKeyFile = config.age.secrets.dragon-wireguard-key.path;
listenPort = vpnPort;
peers = let mkPeer = host: ip: {
+ name = "host";
ips = [ "${vpnPrefix}::${ip}/128" ];
publicKey = (builtins.readFile (../secrets + "/${host}-wireguard-key.pub"));
endpoint = null;
router = false;
- }; in {
- firelink = mkPeer "firelink" "2001";
- pincer = mkPeer "pincer" "2001";
- trygve = mkPeer "trygve" "2004";
- };
+ }; in [
+ mkPeer "firelink" "2001";
+ mkPeer "pincer" "2001";
+ mkPeer "trygve" "2004";
+ ];
};
services.ddclient = {