Skip to content

Commit

Permalink
tt-rss: Add updateDaemon.commandFlags parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gileri committed Nov 16, 2024
1 parent ebf5be7 commit b652b30
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion nixos/modules/services/web-apps/tt-rss.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit b652b30

Please sign in to comment.