fix systemd network dependency

This commit is contained in:
nyanloutre 2024-10-20 11:17:23 +02:00
parent d7970444d7
commit f5b59ef0cb

View File

@ -32,7 +32,7 @@
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
systemd.services.dogetipbot-telegram = { systemd.services.dogetipbot-telegram = {
after = [ "network.target" ]; after = [ "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;