feat(desktop/hm): add hydractify-bot service

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-01-06 20:37:41 -03:00
parent 5525bfb0dd
commit bee802ac9b
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
4 changed files with 133 additions and 12 deletions

View file

@ -10,6 +10,7 @@
../../modules/home-manager
./services/openttd.nix
./services/terraria.nix
./services/hydractify-bot.nix
];
# Home Manager needs a bit of information about you and the paths it should

View file

@ -0,0 +1,17 @@
{ hydractify-bot, pkgs, ... }:
{
systemd.user.services.hydractify-bot = {
Install.WantedBy = [ "default.target" ];
Unit.Description = "Hydractify bot";
Unit.After = "postgresql.service";
Service = {
ExecStart = "${hydractify-bot.defaultPackage.${pkgs.system}}/bin/hydractify";
Restart = "on-failure";
Type = "simple";
WorkingDirectory = "/mnt/internal/hydractify/GitHub/hydractify";
};
};
}