Skip to content

Commit

Permalink
fix(cloud/botb-battles): rewrite service
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Nov 16, 2024
1 parent 002bdb7 commit 6bba4b2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hosts/cloud/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@
};
};

systemd.user.services.botb-battles = {
systemd.services.botb-battles = {
enable = true;

wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
wantedBy = [ "default.target" ];

serviceConfig = {
Type = "simple";
ExecStart = ''${pkgs.python3} ${./botb_battles.py}'';
Restart = "always";
ExecStart = "${pkgs.python3}/bin/python ${./botb_battles.py}";
};
};

Expand Down

0 comments on commit 6bba4b2

Please sign in to comment.