From 1880125b7c35f2823a45baa5b4a8e3f8764729b8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 3 Jan 2026 08:34:27 -0800 Subject: simplify wireguard public key settings --- profiles/wireguard.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'profiles/wireguard.nix') 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"; }; }; -- cgit v1.2.3