diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/obelix.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/host/obelix.nix b/host/obelix.nix index 477819c..c922cea 100644 --- a/host/obelix.nix +++ b/host/obelix.nix @@ -30,4 +30,22 @@ }; services.xserver.videoDrivers = [ "nvidiaBeta" ]; + + networking.wireguard.interfaces = { + wg0 = { + ips = [ "10.100.0.2/24" ]; + + privateKeyFile = "/etc/wireguard/private"; + + peers = [ + { # automatix + publicKey = "B0tkjq+5SfECKx1gWEP5JVWOIaRWL2JNE7iSpMmN4F0="; + allowedIPs = [ "10.100.0.0/24" ]; + endpoint = "kummerlaender.eu:54321"; + + persistentKeepalive = 10; + } + ]; + }; + }; } |