From bab069b2864e0906d40168f729fae2d38d1f20a9 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 1 Apr 2021 00:22:57 +0000 Subject: [PATCH] bvm-twitterchiver: add twitterchiver-{relatedfetcher,archiver} --- ops/nixos/bvm-twitterchiver/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ops/nixos/bvm-twitterchiver/default.nix b/ops/nixos/bvm-twitterchiver/default.nix index 5d4bb73bbe..f7062bbce2 100644 --- a/ops/nixos/bvm-twitterchiver/default.nix +++ b/ops/nixos/bvm-twitterchiver/default.nix @@ -53,6 +53,28 @@ in { Restart = "always"; }; }; + systemd.services.twitterchiver-relatedfetcher = { + description = "Twitterchiver Related-Fetcher"; + wants = ["network-online.target"]; + wantedBy = ["multi-user.target"]; + serviceConfig = { + ExecStart = "${depot.go.twitterchiver.relatedfetcher}/bin/relatedfetcher --media_work_at_once 100 --media_tick_interval 10s"; + EnvironmentFile = secrets.twitterchiver.environment; + User = "twitterchiver"; + Restart = "always"; + }; + }; + systemd.services.twitterchiver-archiver = { + description = "Twitterchiver Archiver"; + wants = ["network-online.target"]; + wantedBy = ["multi-user.target"]; + serviceConfig = { + ExecStart = "${depot.go.twitterchiver.archiver}/bin/archiver"; + EnvironmentFile = secrets.twitterchiver.environment; + User = "twitterchiver"; + Restart = "always"; + }; + }; system.stateVersion = "21.05"; }