From 62ec6992a6e553d34477f7edc90ac491d4606321 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 22 Jun 2019 23:46:13 +0200 Subject: Connect obelix to mesh network --- host/obelix.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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; + } + ]; + }; + }; } -- cgit v1.2.3