nixos/zerotier: binds to network-online.target to avoid the 1m30s timeout before kill on shutdown

This commit is contained in:
obadz 2018-10-29 20:22:40 +00:00 committed by obadz
parent 678e28dfd5
commit c8c1ed2c78

View File

@ -39,7 +39,8 @@ in
systemd.services.zerotierone = {
description = "ZeroTierOne";
path = [ cfg.package ];
after = [ "network.target" ];
bindsTo = [ "network-online.target" ];
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
preStart = ''
mkdir -p /var/lib/zerotier-one/networks.d