From 8a9ed9adda26f00722a365bdcda17bb573d7a6c3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 26 Jan 2022 23:36:57 +0100 Subject: Update athena wireguard --- host/athena.nix | 34 +++++++++++++++++----------------- host/software/server/wireguard.nix | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'host') diff --git a/host/athena.nix b/host/athena.nix index 6426bb9..1053c54 100644 --- a/host/athena.nix +++ b/host/athena.nix @@ -29,23 +29,23 @@ users.extraUsers.common.extraGroups = [ "networkmanager" "libvirtd" ]; - #networking.wireguard.interfaces = { - # wg0 = { - # ips = [ "10.100.0.4/24" ]; - - # privateKeyFile = "/etc/wireguard/private"; - - # peers = [ - # { # automatix - # publicKey = "B0tkjq+5SfECKx1gWEP5JVWOIaRWL2JNE7iSpMmN4F0="; - # allowedIPs = [ "10.100.0.0/24" ]; - # endpoint = "kummerlaender.eu:54321"; - - # persistentKeepalive = 10; - # } - # ]; - # }; - #}; + networking.wireguard.interfaces = { + wg0 = { + ips = [ "10.100.0.4/24" ]; + + privateKeyFile = "/etc/wireguard/private"; + + peers = [ + { # automatix + publicKey = "B0tkjq+5SfECKx1gWEP5JVWOIaRWL2JNE7iSpMmN4F0="; + allowedIPs = [ "10.100.0.0/24" ]; + endpoint = "kummerlaender.eu:54321"; + + persistentKeepalive = 10; + } + ]; + }; + }; services = { upower.enable = true; diff --git a/host/software/server/wireguard.nix b/host/software/server/wireguard.nix index 8104cb0..102fe80 100644 --- a/host/software/server/wireguard.nix +++ b/host/software/server/wireguard.nix @@ -23,7 +23,7 @@ allowedIPs = [ "10.100.0.3" ]; } { # athena - publicKey = "byk4tOSFypOOcIQ0Za1UNilm6Bigm+dQVPxilB7NB0k="; + publicKey = "eweByJZDVxq23kJjGV5e1utRdPKo4erEnwwe13bFrkE="; allowedIPs = [ "10.100.0.4" ]; } { # schreibfix -- cgit v1.2.3