From 1551f5f630456762e92516ef9b8f645684006e18 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 12 Nov 2022 16:58:30 +0100 Subject: [PATCH] Run pihole after unbound started --- modules/pihole/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/pihole/default.nix b/modules/pihole/default.nix index 332de4f..eca2fb6 100644 --- a/modules/pihole/default.nix +++ b/modules/pihole/default.nix @@ -1,4 +1,7 @@ { custom }: { config, ... }: +let + service-name = "${config.virtualisation.oci-containers.backend}-pihole"; +in { networking = { firewall.allowedTCPPorts = [ @@ -34,4 +37,5 @@ ]; }; }; + systemd.services.${service-name}.after = [ "unbound.service" ]; }