nixos/kresd: fix CacheDirectory permissions as per tmpfiles

This commit is contained in:
Edmund Wu 2020-08-16 12:16:30 -04:00
parent ed89d043dc
commit 1a6240bde4
No known key found for this signature in database
GPG key ID: 0D62311F6343DE1A

View file

@ -129,9 +129,9 @@ in {
systemd.services."kresd@".serviceConfig = {
ExecStart = "${package}/bin/kresd --noninteractive "
+ "-c ${package}/lib/knot-resolver/distro-preconfig.lua -c ${configFile}";
# Ensure correct ownership in case UID or GID changes.
# Ensure /var/cache/knot-resolver exists
CacheDirectory = "knot-resolver";
CacheDirectoryMode = "0750";
CacheDirectoryMode = "0770";
};
# Try cleaning up the previously default location of cache file.