From 68366adf3c3020a7323ae8197da2b156f5112ab1 Mon Sep 17 00:00:00 2001 From: Edmund Wu Date: Mon, 10 Aug 2020 14:21:49 -0400 Subject: [PATCH] nixos/kresd: ensure /run/knot-resolver exists --- nixos/modules/services/networking/kresd.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/networking/kresd.nix b/nixos/modules/services/networking/kresd.nix index 5403a0a06583..ccb34163d5f3 100644 --- a/nixos/modules/services/networking/kresd.nix +++ b/nixos/modules/services/networking/kresd.nix @@ -129,6 +129,9 @@ in { systemd.services."kresd@".serviceConfig = { ExecStart = "${package}/bin/kresd --noninteractive " + "-c ${package}/lib/knot-resolver/distro-preconfig.lua -c ${configFile}"; + # Ensure /run/knot-resolver exists + RuntimeDirectory = "knot-resolver"; + RuntimeDirectoryMode = "0770"; # Ensure /var/lib/knot-resolver exists StateDirectory = "knot-resolver"; StateDirectoryMode = "0770";