summaryrefslogtreecommitdiff
path: root/modules/vpn.nix
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-10-07 11:38:57 -0400
committerKjetil Orbekk <kj@orbekk.com>2023-10-07 11:38:57 -0400
commit7c79f33323228172f5b01c11cde1bef150ef6dd4 (patch)
tree1413c8803b2cee87bf831e2837a52ff358cc441a /modules/vpn.nix
parentee29f6c6b6aaf3561ddbe02385398838613ebb42 (diff)
vpn setup
Diffstat (limited to 'modules/vpn.nix')
-rw-r--r--modules/vpn.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/vpn.nix b/modules/vpn.nix
index 3f461aa..27cb83f 100644
--- a/modules/vpn.nix
+++ b/modules/vpn.nix
@@ -79,7 +79,14 @@ in {
"${config.age.secrets."${config.networking.hostName}-wireguard-key".path}";
allowedIPsAsRoutes = true;
listenPort = cfg.listenPort;
- peers = getPeers config.networking.hostName;
+ peers = [
+ {
+ name = "dragon";
+ endpoint = "vpn.orbekk.com";
+ publicKey = "9q8aH3R8YBfP3xiTmN5bNiLQswY5dy3grB/P0vDqP0M=";
+ allowedIPs = ["${vpn-prefix}::/64"];
+ }
+ ];
};
};
};