add after and wantedBy to service

This commit is contained in:
Aaron Bieber 2024-07-02 14:56:51 -06:00
parent 8c6316398a
commit 2cee88ad7c
No known key found for this signature in database

View File

@ -49,7 +49,9 @@ in {
systemd.services.mcchunkie = { systemd.services.mcchunkie = {
enable = true; enable = true;
description = "mcchunkie server"; description = "mcchunkie server";
after = [ "network-online.target" ];
wants = [ "network-online.target" ]; wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
environment = { HOME = "${cfg.dataDir}"; }; environment = { HOME = "${cfg.dataDir}"; };