From 95adeb4b4df6cb5f610b1aac449552f63aab20f0 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 1 Sep 2017 16:52:01 +0200 Subject: haku: add static vpn interface --- machines/profpatsch/haku.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'machines/profpatsch/haku.nix') 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 = { -- cgit 1.4.1