🚀 supply vpn password automatically

dev-docs
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
1 changed files with 6 additions and 0 deletions

View File

@ -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" ];
};
}