fix network dependency

This commit is contained in:
nyanloutre 2024-10-28 21:47:30 +01:00
parent f5b59ef0cb
commit 667e318212

View File

@ -33,6 +33,7 @@
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
systemd.services.dogetipbot-telegram = { systemd.services.dogetipbot-telegram = {
after = [ "network-online.target" ]; after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
script = "${app}/bin/dogetipbot-telegram --db-path $STATE_DIRECTORY/users.db"; script = "${app}/bin/dogetipbot-telegram --db-path $STATE_DIRECTORY/users.db";
enable = true; enable = true;