blob: 14347b48a2be727152baf097bcf7075899f892be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{pkgs, ...}: {
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"];
};
}
|