From e394a4b7fbb46a5285ffff541e0b6a4b78fc7422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 23 Mar 2022 13:05:36 +0100 Subject: [PATCH] :rocket: supply vpn password automatically --- modules/services/openvpn.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/services/openvpn.nix b/modules/services/openvpn.nix index a7090d5..3ba7f8c 100644 --- a/modules/services/openvpn.nix +++ b/modules/services/openvpn.nix @@ -18,4 +18,10 @@ updateResolvConf = true; }; }; + systemd.services.openvpn-homeVPN-password = { + description = "Enter homeVPN password"; + script = "cat /run/agenix/homeVPNPassword | systemd-tty-ask-password-agent"; + wantedBy = [ "openvpn-homeVPN.service" ]; + after = [ "openvpn-homeVPN.service" ]; + }; }