This commit is contained in:
Lucy Hochkamp 2024-04-02 18:34:57 +02:00
parent 7eda91e4df
commit f38f819450
No known key found for this signature in database

View file

@ -56,9 +56,10 @@ with lib;
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
script = ''${pkgs.bash}/bin/bash /host${cfg.script}''; script = ''${pkgs.bash}/bin/bash /host${cfg.script}'';
unitConfig.Type = "oneshot"; unitConfig.Type = "oneshot";
requiredBy = [ "tailscaled.service" "openvpn-ovpn.service"];
path = [ pkgs.dig pkgs.iproute2 ]; path = [ pkgs.dig pkgs.iproute2 ];
}; };
services.openvpn.servers.${name} = { services.openvpn.servers.ovpn = {
config = '' config = ''
config /host${cfg.config.${name}} config /host${cfg.config.${name}}
''; '';