From b4f56054eed4d9f5c54997a75ba076e24a3a39a1 Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Mon, 4 May 2026 19:11:05 -0400 Subject: [PATCH] sfeed update timer systemd --- hjem.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hjem.nix b/hjem.nix index 67a55f5..c0d5219 100644 --- a/hjem.nix +++ b/hjem.nix @@ -38,4 +38,23 @@ ]; }; + systemd.user.services."sfeed-update" = { + description = "Update sfeed RSS feeds"; + path = with pkgs; [ curl sfeed coreutils]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.sfeed}/bin/sfeed_update"; + }; + }; + + systemd.user.timers."sfeed-update" = { + description = "Run sfeed_update daily"; + timerConfig = { + OnCalendar = "daily"; + Persistent = true; + }; + wantedBy = [ "timers.target" ]; + }; + + } -- 2.54.0