nixos/freshrss: fix reload when config changes

(cherry picked from commit edcdf6ad3b)
This commit is contained in:
Felix Buehler 2024-06-10 22:16:20 +02:00 committed by github-actions[bot]
parent b1496a2c6b
commit 204a119210

View File

@ -255,13 +255,10 @@ in
{
description = "Set up the state directory for FreshRSS before use";
wantedBy = [ "multi-user.target" ];
serviceConfig = defaultServiceConfig //{
Type = "oneshot";
User = "freshrss";
Group = "freshrss";
StateDirectory = "freshrss";
WorkingDirectory = cfg.package;
serviceConfig = defaultServiceConfig // {
RemainAfterExit = true;
};
restartIfChanged = true;
environment = {
DATA_PATH = cfg.dataDir;
};
@ -299,7 +296,7 @@ in
environment = {
DATA_PATH = cfg.dataDir;
};
serviceConfig = defaultServiceConfig //{
serviceConfig = defaultServiceConfig // {
ExecStart = "${cfg.package}/app/actualize_script.php";
};
};