diff options
Diffstat (limited to 'profiles/wireguard.nix')
| -rw-r--r-- | profiles/wireguard.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/profiles/wireguard.nix b/profiles/wireguard.nix index a080693..9c9b134 100644 --- a/profiles/wireguard.nix +++ b/profiles/wireguard.nix @@ -1,20 +1,25 @@ -{ config, lib, ... }: +{ + config, + lib, + hostConfigurations, + ... +}: let wgHosts = { bree = { ip = 40; - publicKey = "bJZyQoemudGJQox8Iegebm23c4BNVIxRPy1kmI2l904="; + publicKey = hostConfigurations.bree.wgPublicKey; endpoint = "192.168.1.50"; }; argonath = { ip = 51; - publicKey = "vTItDh9YPnA+8hL1kIK+7EHv0ol3qvhfAfz790miw1w="; + publicKey = hostConfigurations.argonath.wgPublicKey; endpoint = "157.230.146.234"; }; rivendell = { ip = 60; - publicKey = "jf7T7TMKQWSgSXhUplldZDV9G2y2BjMmHIAhg5d26ng="; + publicKey = hostConfigurations.rivendell.wgPublicKey; endpoint = "192.168.1.114"; }; }; |
