summaryrefslogtreecommitdiffstats
path: root/hjem.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hjem.nix')
-rw-r--r--hjem.nix19
1 files changed, 19 insertions, 0 deletions
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" ];
+ };
+
+
}