🚀 supply vpn password automatically

This commit is contained in:
Moritz Böhme 2022-03-23 13:05:36 +01:00
parent 523864e984
commit e394a4b7fb
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5

View file

@ -18,4 +18,10 @@
updateResolvConf = true; 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" ];
};
} }