From 59b10560752c278f1e8e69685d77a34d85021e9b Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 26 May 2024 16:43:29 -0400 Subject: [PATCH] yuki: add twitch point miner --- hosts/yuki/services/default.nix | 1 + hosts/yuki/services/twitch-miner.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 hosts/yuki/services/twitch-miner.nix diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index cff1f4e..a2d2da5 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -11,5 +11,6 @@ ./anki-sync-server.nix ./paperless.nix ./hydroxide.nix + ./twitch-miner.nix ]; } diff --git a/hosts/yuki/services/twitch-miner.nix b/hosts/yuki/services/twitch-miner.nix new file mode 100644 index 0000000..9fb12e0 --- /dev/null +++ b/hosts/yuki/services/twitch-miner.nix @@ -0,0 +1,13 @@ +_: { + virtualisation.oci-containers.containers.twitch-miner = { + image = "rdavidoff/twitch-channel-points-miner-v2@sha256:a344037ff4180fccc909ca398cc180a840ffd89f6af121789a58764a86769e58"; + hostname = "twitch-miner"; + volumes = [ + "/home/notoh/twitch-miner/analytics:/usr/src/app/analytics" + "/home/notoh/twitch-miner/cookies:/usr/src/app/cookie" + "/home/notoh/twitch-miner/logs:/usr/src/app/logs" + "/home/notoh/twitch-miner/run.py:/usr/src/app/run.py:ro" + ]; + ports = ["5000:5000"]; + }; +}