Skip to content

Commit

Permalink
nixos/kresd: ensure /run/knot-resolver exists
Browse files Browse the repository at this point in the history
  • Loading branch information
eadwu committed Aug 16, 2020
1 parent 6c67af2 commit 68366ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/services/networking/kresd.nix
Expand Up @@ -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";
Expand Down

0 comments on commit 68366ad

Please sign in to comment.