1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/mastodon-bot.nix

20 lines
519 B
Nix
Raw Normal View History

{pkgs, ...}: {
2022-12-31 07:23:34 +01:00
systemd.services.imaginary-illuminations = {
2023-01-29 18:51:05 +01:00
enable = false;
2022-12-31 07:23:34 +01:00
wants = ["network-online.target"];
serviceConfig = {
User = "kfm";
Group = "users";
2022-12-31 07:23:34 +01:00
WorkingDirectory = "/home/kfm/cloud/Seafile/Documents/Media/imaginary-illuminations";
2023-01-02 09:10:45 +01:00
Restart = "on-failure";
RestartSec = "15s";
2022-12-31 07:23:34 +01:00
};
startAt = "7:00";
script = ''
${pkgs.deno}/bin/deno run -A post.ts
2022-12-31 07:23:34 +01:00
'';
};
systemd.timers.imaginary-illuminations.timerConfig.RandomizedDelaySec = "14h";
2022-12-31 07:23:34 +01:00
}