From 7440ef91b403c5ab709c3169c2eb5646e098d560 Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 16 Jan 2026 20:37:49 -0600 Subject: [PATCH] try preStart --- system/services/containers/pihole/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/system/services/containers/pihole/default.nix b/system/services/containers/pihole/default.nix index d9887bf..5f6b9c9 100644 --- a/system/services/containers/pihole/default.nix +++ b/system/services/containers/pihole/default.nix @@ -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 ];