From: Skullheadx Date: Mon, 4 May 2026 23:11:05 +0000 (-0400) Subject: sfeed update timer systemd X-Git-Url: http://git.skullheadx.com/nixos/static/git-logo.png?a=commitdiff_plain;h=b4f56054eed4d9f5c54997a75ba076e24a3a39a1;p=nixos.git sfeed update timer systemd --- 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" ]; + }; + + }