diff options
| author | Franck Cuny <franck@fcuny.net> | 2026-01-03 08:34:27 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2026-01-03 08:34:27 -0800 |
| commit | 1880125b7c35f2823a45baa5b4a8e3f8764729b8 (patch) | |
| tree | c1ca8dabc83cf7c4fc2207ac3208d90ecb78289a /profiles | |
| parent | fix (diff) | |
| download | infra-1880125b7c35f2823a45baa5b4a8e3f8764729b8.tar.gz | |
simplify wireguard public key settings
Diffstat (limited to '')
| -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"; }; }; |
