From 0794eb223b679ae5e541cd5a321bb0a4be1ea92b Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Fri, 10 Oct 2025 12:08:16 +0100 Subject: [PATCH] nixos/openvpn: tidy systemd restart-after-sleep unit On reviewing my PR #345993, I spotted I'd failed to remove a now-unneeded package and failed to update the systemd unit description, so tidy that up. --- nixos/modules/services/networking/openvpn.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"; }; };