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"; }