From dae829296ca6716c64995445946976df28bba83e Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 22 Jun 2019 23:48:17 +0200 Subject: Connect majestix to mesh network --- host/majestix.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/host/majestix.nix b/host/majestix.nix index 8d5aab7..da855d6 100644 --- a/host/majestix.nix +++ b/host/majestix.nix @@ -45,4 +45,23 @@ nssmdns = true; }; }; + + hardware.opengl.extraPackages = [ pkgs.intel-ocl ]; + + networking.wireguard.interfaces = { + wg0 = { + ips = [ "10.100.0.3/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