summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-23 15:13:43 +0200
committerAdrian Kummerlaender2019-06-23 15:13:43 +0200
commit6f1d37ce028153d5348363c472ccc8fdd1b64ee5 (patch)
treea826f1dd698263add96d324027ae1ecbebbe62f7 /host
parentdae829296ca6716c64995445946976df28bba83e (diff)
downloadnixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.tar
nixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.tar.gz
nixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.tar.bz2
nixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.tar.lz
nixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.tar.xz
nixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.tar.zst
nixos_system-6f1d37ce028153d5348363c472ccc8fdd1b64ee5.zip
Connect athena to mesh network
Diffstat (limited to 'host')
-rw-r--r--host/athena.nix20
-rw-r--r--host/software/server/wireguard.nix4
2 files changed, 24 insertions, 0 deletions
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 = ''
diff --git a/host/software/server/wireguard.nix b/host/software/server/wireguard.nix
index 3b48315..21bf12a 100644
--- a/host/software/server/wireguard.nix
+++ b/host/software/server/wireguard.nix
@@ -20,6 +20,10 @@
publicKey = "Tkoaewh9HB5rIuJVrFgClRF4x7prOtIlSJjiTYCpxis=";
allowedIPs = [ "10.100.0.3/32" ];
}
+ { # athena
+ publicKey = "t4SzRV/olVdzAKauJOwFau3I0fTISUvbOAaKGZd6ezU=";
+ allowedIPs = [ "10.100.0.4/32" ];
+ }
];
};
};