From 6f1d37ce028153d5348363c472ccc8fdd1b64ee5 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 23 Jun 2019 15:13:43 +0200 Subject: Connect athena to mesh network --- host/athena.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'host/athena.nix') diff --git a/host/athena.nix b/host/athena.nix index cc9c80d..c37318f 100644 --- a/host/athena.nix +++ b/host/athena.nix @@ -28,6 +28,24 @@ 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; + } + ]; + }; + }; + services = { upower.enable = true; acpid.enable = true; @@ -55,6 +73,8 @@ hardware.bluetooth.enable = true; + hardware.opengl.extraPackages = [ pkgs.intel-ocl ]; + services.tlp = { enable = true; extraConfig = '' -- cgit v1.2.3