From b8ef2285b5b91e402c8d6a8eb2bf625a440c2511 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sun, 15 Mar 2020 06:17:12 +0100 Subject: [PATCH] nixos/stubby: set Type=notify on the systemd service Fixes some dependency ordering problems at boot time with services that require DNS. Without Type=notify these services might be started before stubby was ready to accept DNS requests. --- nixos/modules/services/networking/stubby.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/stubby.nix b/nixos/modules/services/networking/stubby.nix index 849d266576d..c5e0f929a12 100644 --- a/nixos/modules/services/networking/stubby.nix +++ b/nixos/modules/services/networking/stubby.nix @@ -205,6 +205,7 @@ in wantedBy = [ "multi-user.target" ]; serviceConfig = { + Type = "notify"; AmbientCapabilities = "CAP_NET_BIND_SERVICE"; CapabilityBoundingSet = "CAP_NET_BIND_SERVICE"; ExecStart = "${pkgs.stubby}/bin/stubby -C ${confFile} ${optionalString cfg.debugLogging "-l"}";