nixos/kresd: ensure /run/knot-resolver exists

This commit is contained in:
Edmund Wu 2020-08-10 14:21:49 -04:00
parent 6c67af2fac
commit 68366adf3c
No known key found for this signature in database
GPG Key ID: 0D62311F6343DE1A

@ -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";