diff options
author | Adrian Kummerlaender | 2019-06-22 23:48:17 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2019-06-22 23:48:47 +0200 |
commit | dae829296ca6716c64995445946976df28bba83e (patch) | |
tree | 524715818e8c0575620b214c46fab6ef43ef363a | |
parent | 62ec6992a6e553d34477f7edc90ac491d4606321 (diff) | |
download | nixos_system-dae829296ca6716c64995445946976df28bba83e.tar nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.gz nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.bz2 nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.lz nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.xz nixos_system-dae829296ca6716c64995445946976df28bba83e.tar.zst nixos_system-dae829296ca6716c64995445946976df28bba83e.zip |
Connect majestix to mesh network
-rw-r--r-- | host/majestix.nix | 19 |
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; + } + ]; + }; + }; } |