about summary refs log tree commit diff
path: root/machines/profpatsch/haku.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-09-01 16:52:01 +0200
committerProfpatsch <mail@profpatsch.de>2017-09-01 17:10:42 +0200
commit95adeb4b4df6cb5f610b1aac449552f63aab20f0 (patch)
tree84375c16d8f47175876fc2a5ddc8a0bd7664124e /machines/profpatsch/haku.nix
parent8ad5edeab743b13986ef38c194f6d592b03d6798 (diff)
haku: add static vpn interface
Diffstat (limited to 'machines/profpatsch/haku.nix')
-rw-r--r--machines/profpatsch/haku.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/machines/profpatsch/haku.nix b/machines/profpatsch/haku.nix
index b05ce485..20ed1cf4 100644
--- a/machines/profpatsch/haku.nix
+++ b/machines/profpatsch/haku.nix
@@ -95,6 +95,14 @@ in
       package = myPkgs.searx;
     };
 
+    services.openvpn.servers.hakuserver = {
+      config = ''
+        dev tun
+        ifconfig 10.20.30.40 10.20.30.41
+        secret /root/static-vpn.key
+      '';
+    };
+
     networking = {
       hostName = "haku";
       firewall = {