try preStart
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.28";
|
||||
|
||||
timeoutStartSec = "infinity";
|
||||
timeoutStartSec = "30s";
|
||||
|
||||
config = let
|
||||
pkgs-us = import nixpkgs-us { system = "x86_64-linux"; };
|
||||
@@ -127,12 +127,9 @@
|
||||
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."eth0@if24" = {
|
||||
linkConfig.RequiredForOnline = "yes";
|
||||
};
|
||||
};
|
||||
systemd.services.pihole-ftl-setup.preStart = ''
|
||||
while [[ ! ''$(ip l | grep eth0 | grep UP) ]]; do sleep 1; done;
|
||||
'';
|
||||
|
||||
networking = {
|
||||
firewall.allowedTCPPorts = [ 5335 ];
|
||||
|
||||
Reference in New Issue
Block a user