nixos/systemd: Implement a packages option for tmpfiles

Also drop the `portables` tmpfiles because the file is missing in the
systemd derivation.
This commit is contained in:
Janne Heß
2020-07-18 00:03:47 +02:00
committed by ajs124
parent 19f85b0f20
commit a44b2cdd3a
3 changed files with 63 additions and 21 deletions
+1 -2
View File
@@ -134,8 +134,7 @@ in {
CacheDirectoryMode = "0750";
};
environment.etc."tmpfiles.d/knot-resolver.conf".source =
"${package}/lib/tmpfiles.d/knot-resolver.conf";
systemd.tmpfiles.packages = [ package ];
# Try cleaning up the previously default location of cache file.
# Note that /var/cache/* should always be safe to remove.