mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
20 lines
518 B
Nix
20 lines
518 B
Nix
{pkgs, ...}: {
|
|
systemd.services.imaginary-illuminations = {
|
|
enable = true;
|
|
wants = ["network-online.target"];
|
|
serviceConfig = {
|
|
User = "kfm";
|
|
Group = "users";
|
|
WorkingDirectory = "/home/kfm/cloud/Seafile/Documents/Media/imaginary-illuminations";
|
|
Restart = "on-failure";
|
|
RestartSec = "15s";
|
|
};
|
|
startAt = "7:00";
|
|
script = ''
|
|
${pkgs.deno}/bin/deno run -A post.ts
|
|
'';
|
|
};
|
|
|
|
systemd.timers.imaginary-illuminations.timerConfig.RandomizedDelaySec = "14h";
|
|
}
|