diff --git a/overlays/dogetipbot-telegram.nix b/overlays/dogetipbot-telegram.nix deleted file mode 100644 index 162b5f5..0000000 --- a/overlays/dogetipbot-telegram.nix +++ /dev/null @@ -1,9 +0,0 @@ -self: super: - -{ - dogetipbot-telegram = super.callPackage (super.fetchgit { - url = "https://gitlab.com/nyanloutre/dogetipbot-telegram.git"; - rev = "a63408de18d447983d65a51f176c35e434327517"; - sha256 = "12y7yd114cz64blgnyljpnnqbycsp0f1ljzaiqq05a5xa4pjvwyf"; - }) { pkgs = self; }; -} diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 3e1bd25..9325572 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -35,10 +35,6 @@ in ./web.nix ]; - nixpkgs.overlays = [ - (import ../../overlays/dogetipbot-telegram.nix) - ]; - services = { fail2ban.enable = true; @@ -242,14 +238,21 @@ in }; }; - systemd.services.dogetipbot-telegram = { + systemd.services.dogetipbot-telegram = let + dogetipbot-telegram = pkgs.callPackage (pkgs.fetchgit { + url = "https://gitlab.com/nyanloutre/dogetipbot-telegram.git"; + rev = "18c875a2e4b98221523818515a1eecb9c5aeb093"; + sha256 = "0mhv00y1c2py425wxl13if6nlv97xk5k6flf772jj1yaxipjdmpn"; + }) { inherit pkgs; }; + in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - script = "${pkgs.dogetipbot-telegram}/bin/dogetipbot-telegram --block-io-api-key $BLOCK_IO_API_KEY --block-io-pin $BLOCK_IO_PIN --telegram-api-key $TELEGRAM_API_KEY --network DOGE"; + script = "${dogetipbot-telegram}/bin/dogetipbot-telegram --db-path $STATE_DIRECTORY/users.db"; enable = true; serviceConfig = { EnvironmentFile = "/mnt/secrets/dogetipbot-telegram_env"; DynamicUser = true; + StateDirectory = "dogetipbot"; }; };