summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-22 23:48:17 +0200
committerAdrian Kummerlaender2019-06-22 23:48:47 +0200
commitdae829296ca6716c64995445946976df28bba83e (patch)
tree524715818e8c0575620b214c46fab6ef43ef363a
parent62ec6992a6e553d34477f7edc90ac491d4606321 (diff)
downloadnixos_system-dae829296ca6716c64995445946976df28bba83e.tar
nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.gz
nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.bz2
nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.xz
nixos_system-dae829296ca6716c64995445946976df28bba83e.zip
Connect majestix to mesh network
-rw-r--r--host/majestix.nix19
1 files changed, 19 insertions, 0 deletions
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;
+ }
+ ];
+ };
+ };
}