commit 8de3c69a31e19e202c303f731bad4258a38ac538 parent 2269dd29722fc2ba35e71c7a18aab26be30d8ab0 Author: MTRNord <mtrnord1@gmail.com> Date: Sat, 26 Aug 2023 22:45:18 +0200 Put into right location Diffstat:
| M | nixos/worker-1/configuration.nix | | | 25 | ++++++++++++++----------- |
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -187,18 +187,21 @@ wg0 = { ips = [ "10.100.0.1/24" ]; listenPort = 51820; + privateKeyFile = config.sops.secrets."wireguard/privateKey".path; + table = "off"; + + peers = [ + { + publicKey = "M+OpQ/umgERHB+K6JJkszVChrRPqqYvMstbr28HRrSE="; + allowedIPs = [ + "0.0.0.0/0" + "::/0" + ]; + endpoint = "100.64.0.3:51820"; + } + ]; }; - privateKeyFile = config.sops.secrets."wireguard/privateKey".path; - table = "off"; - - peers = [ - { - name = "nordgedanken"; - publicKey = "M+OpQ/umgERHB+K6JJkszVChrRPqqYvMstbr28HRrSE="; - allowedIPs = [ "0.0.0.0/0" "::/0" ]; - endpoint = "100.64.0.3:51820"; - } - ]; + }; firewall =