1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 19:41:08 +01:00

fix: post on mastodon from both laptops

This commit is contained in:
2023-01-01 14:53:43 +01:00
parent 1aa7b78b4a
commit eb17c7fdd9
3 changed files with 6 additions and 6 deletions

View File

@@ -276,5 +276,6 @@ in {
./watson.nix
./zsh.nix
./tor.nix
./mastodon-bot.nix
];
}

17
configs/mastodon-bot.nix Normal file
View File

@@ -0,0 +1,17 @@
{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";
};
startAt = "7:00";
script = ''
${pkgs.deno}/bin/deno run -A post.ts
'';
};
systemd.timers.imaginary-illuminations.timerConfig.RandomizedDelaySec = "14h";
}