From c869eb3ef80ab38dd85a9020c4ef3767d9d26370 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 10 Jan 2025 21:44:54 +0400 Subject: [PATCH] reenable fedifetcher --- modules/server/fedi/akkoma/default.nix | 46 +++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/server/fedi/akkoma/default.nix b/modules/server/fedi/akkoma/default.nix index 5244829e..d4daee58 100644 --- a/modules/server/fedi/akkoma/default.nix +++ b/modules/server/fedi/akkoma/default.nix @@ -164,28 +164,28 @@ in { groups.fedifetcher = { }; }; - # systemd = let - # configPath = "/srv/secrets/fedifetcher.json"; - # state = "/var/lib/fedifetcher"; - # in { - # timers.fedifetcher = { - # wantedBy = [ "timers.target" ]; - # timerConfig = { - # OnUnitActiveSec = "1m"; - # Unit = "fedifetcher.service"; - # }; - # }; - # services.fedifetcher = { - # unitConfig = { ConditionPathExists = configPath; }; - # serviceConfig = { - # WorkingDirectory = state; - # Type = "oneshot"; - # ExecStart = "${pkgs.fedifetcher}/bin/fedifetcher" - # + " --config ${configPath}" + " --state-dir ${state}"; - # User = "fedifetcher"; - # Group = "fedifetcher"; - # }; - # }; - # }; + systemd = let + configPath = "/srv/secrets/fedifetcher.json"; + state = "/var/lib/fedifetcher"; + in { + timers.fedifetcher = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnUnitActiveSec = "1m"; + Unit = "fedifetcher.service"; + }; + }; + services.fedifetcher = { + unitConfig = { ConditionPathExists = configPath; }; + serviceConfig = { + WorkingDirectory = state; + Type = "oneshot"; + ExecStart = "${pkgs.fedifetcher}/bin/fedifetcher" + + " --config ${configPath}" + " --state-dir ${state}"; + User = "fedifetcher"; + Group = "fedifetcher"; + }; + }; + }; }; }