From d62d43afe5737f5c5a618121687088eac9b29c21 Mon Sep 17 00:00:00 2001 From: gileri Date: Tue, 12 Nov 2024 21:23:08 +0100 Subject: [PATCH] tt-rss: Add updateDaemon.commandFlags parameter (cherry picked from commit b652b30119e9f6cfb9b61827a1ee7f75516cf428) --- nixos/modules/services/web-apps/tt-rss.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/tt-rss.nix b/nixos/modules/services/web-apps/tt-rss.nix index 9826febb3c66f..ac67078367b27 100644 --- a/nixos/modules/services/web-apps/tt-rss.nix +++ b/nixos/modules/services/web-apps/tt-rss.nix @@ -512,6 +512,17 @@ let ''; }; + updateDaemon = { + commandFlags = mkOption { + type = types.str; + default = "--quiet"; + description = '' + Command-line flags passed to the update daemon. + The default --quiet flag mutes all logging, including errors. + ''; + }; + }; + extraConfig = mkOption { type = types.lines; default = ""; @@ -622,7 +633,7 @@ let serviceConfig = { User = "${cfg.user}"; Group = "tt_rss"; - ExecStart = "${phpPackage}/bin/php ${cfg.root}/www/update.php --daemon --quiet"; + ExecStart = "${phpPackage}/bin/php ${cfg.root}/www/update.php --daemon ${cfg.updateDaemon.commandFlags}"; Restart = "on-failure"; RestartSec = "60"; SyslogIdentifier = "tt-rss";