diff --git a/hosts/cloud/default.nix b/hosts/cloud/default.nix index 66d5668..ae105b2 100644 --- a/hosts/cloud/default.nix +++ b/hosts/cloud/default.nix @@ -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} ${./botb_battles.py}"; }; };