From 2bf36bf26d4e32b7153eac4be3b7a661441f78e1 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 31 Oct 2025 16:15:19 +0900 Subject: [PATCH] nixos/webhook: replace systemd `script` with `ExecStart` --- nixos/modules/services/networking/webhook.nix | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/nixos/modules/services/networking/webhook.nix b/nixos/modules/services/networking/webhook.nix index 6d7d62dcd6fc..12de959b9f2d 100644 --- a/nixos/modules/services/networking/webhook.nix +++ b/nixos/modules/services/networking/webhook.nix @@ -208,31 +208,31 @@ in after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; environment = config.networking.proxy.envVars // cfg.environment; - script = - let - args = [ - "-ip" - cfg.ip - "-port" - (toString cfg.port) - "-urlprefix" - cfg.urlPrefix - ] - ++ concatMap (hook: [ - "-hooks" - hook - ]) hookFiles - ++ optional cfg.enableTemplates "-template" - ++ optional cfg.verbose "-verbose" - ++ cfg.extraArgs; - in - '' - ${cfg.package}/bin/webhook ${escapeShellArgs args} - ''; serviceConfig = { Restart = "on-failure"; User = cfg.user; Group = cfg.group; + ExecStart = + let + args = [ + "-ip" + cfg.ip + "-port" + (toString cfg.port) + "-urlprefix" + cfg.urlPrefix + ] + ++ concatMap (hook: [ + "-hooks" + hook + ]) hookFiles + ++ optional cfg.enableTemplates "-template" + ++ optional cfg.verbose "-verbose" + ++ cfg.extraArgs; + in + '' + ${cfg.package}/bin/webhook ${escapeShellArgs args} + ''; }; }; };