diff --git a/nixos/modules/services/networking/openvpn.nix b/nixos/modules/services/networking/openvpn.nix index 0bd9d2a2f474..92eb774eab01 100644 --- a/nixos/modules/services/networking/openvpn.nix +++ b/nixos/modules/services/networking/openvpn.nix @@ -85,13 +85,12 @@ let restartService = optionalAttrs cfg.restartAfterSleep { openvpn-restart = { wantedBy = [ "sleep.target" ]; - path = [ pkgs.procps ]; script = let unitNames = map (n: "openvpn-${n}.service") (builtins.attrNames cfg.servers); in "systemctl try-restart ${lib.escapeShellArgs unitNames}"; - description = "Sends a signal to OpenVPN process to trigger a restart after return from sleep"; + description = "Restart system OpenVPN connections when returning from sleep"; }; };