diff --git a/systems/makanek/radio-news.nix b/systems/makanek/radio-news.nix index 20a073b..f1f3848 100644 --- a/systems/makanek/radio-news.nix +++ b/systems/makanek/radio-news.nix @@ -15,19 +15,4 @@ in { description = "supplies git history news to radio lassulus and lets you enter your own."; } ]; - - systemd.services.stockholm-history = { - startAt = "*:58:00"; - script = '' - stockholm=$(mktemp -d) - trap clean EXIT - clean() { - rm -rf "$stockholm" - } - ${pkgs.git}/bin/git clone ${remote} "$stockholm" - ${pkgs.git}/bin/git --git-dir "$stockholm"/.git log --pretty='"%s" by %an, %ar.' --since "$(${pkgs.coreutils}/bin/date -d '1 hours ago')" \ - | ${pkgs.jq}/bin/jq -R '{text: ., from: now | todateiso8601, to: (now + (60 * 60)) | todateiso8601}' \ - | ${pkgs.curl}/bin/curl -Ssfd @- http://radio-news.r/ - ''; - }; }