mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
21 lines
523 B
Nix
21 lines
523 B
Nix
{ pkgs, ... }:
|
|
{
|
|
systemd.services.imaginary-illuminations = {
|
|
enable = false;
|
|
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";
|
|
}
|