]> Skullheadx's Git Forge - nixos.git/commitdiff
sfeed update timer systemd
authorSkullheadx <admonty1@protonmail.com>
Mon, 4 May 2026 23:11:05 +0000 (19:11 -0400)
committerSkullheadx <admonty1@protonmail.com>
Mon, 4 May 2026 23:11:05 +0000 (19:11 -0400)
hjem.nix

index 67a55f56c4e4de2d7921890963121a95e55609bd..c0d5219775926526f855e474c1d17c6e9afccbf0 100644 (file)
--- a/hjem.nix
+++ b/hjem.nix
     ];
   };
 
+  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" ];
+  };
+
+
 }