about summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2020-02-01 17:13:41 +0000
committerJörg Thalheim <joerg@thalheim.io>2020-02-01 17:14:52 +0000
commitc9d6dee9e469fe752bacf3fb885e23e4e01e7b8f (patch)
tree19749474c185a5c7873c17a1a6acfea10081ef87 /nixos/modules/misc
parent5c9198d29e97bac2184b3903fec3d07c5536dd31 (diff)
downloadnixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.tar
nixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.tar.gz
nixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.tar.bz2
nixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.tar.lz
nixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.tar.xz
nixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.tar.zst
nixlib-c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f.zip
nixos/locate: don't create /var/cache
This is already handled by the default systemd tmpfiles.

fixes #78941
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/locate.nix7
1 files changed, 0 insertions, 7 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix
index 552535c253e6..dc668796c788 100644
--- a/nixos/modules/misc/locate.nix
+++ b/nixos/modules/misc/locate.nix
@@ -131,13 +131,6 @@ in {
             ++ optional (isFindutils && cfg.pruneNames != []) "findutils locate does not support pruning by directory component"
             ++ optional (isFindutils && cfg.pruneBindMounts) "findutils locate does not support skipping bind mounts";
 
-    # directory creation needs to be separated from main service
-    # because ReadWritePaths fails when the directory doesn't already exist
-    systemd.tmpfiles.rules =
-      let dir = dirOf cfg.output; in
-      mkIf (dir != "/var/cache")
-        [ "d ${dir} 0755 root root -" ];
-
     systemd.services.update-locatedb =
       { description = "Update Locate Database";
         path = mkIf (!isMLocate) [ pkgs.su ];