dogetipbot-telegram: migrate to flake

This commit is contained in:
nyanloutre 2021-10-22 11:06:14 +02:00
parent e30775bb01
commit f7319c3e20
3 changed files with 44 additions and 23 deletions

View file

@ -675,23 +675,7 @@ in
};
};
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 = "${dogetipbot-telegram}/bin/dogetipbot-telegram --db-path $STATE_DIRECTORY/users.db";
enable = true;
serviceConfig = {
EnvironmentFile = "/mnt/secrets/dogetipbot-telegram_env";
DynamicUser = true;
StateDirectory = "dogetipbot";
};
};
dogetipbot-telegram.enable = true;
# systemd.services.minecraft-overviewer =
# let