diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-02-01 17:13:41 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-02-01 17:14:52 +0000 |
commit | c9d6dee9e469fe752bacf3fb885e23e4e01e7b8f (patch) | |
tree | 19749474c185a5c7873c17a1a6acfea10081ef87 /nixos/modules/misc/locate.nix | |
parent | 5c9198d29e97bac2184b3903fec3d07c5536dd31 (diff) |
nixos/locate: don't create /var/cache
This is already handled by the default systemd tmpfiles. fixes #78941
Diffstat (limited to 'nixos/modules/misc/locate.nix')
-rw-r--r-- | nixos/modules/misc/locate.nix | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index 552535c253e61..dc668796c7886 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 ]; |