Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #79022 from Mic92/locate
nixos/locate: don't create /var/cache
  • Loading branch information
lheckemann committed Feb 1, 2020
2 parents 6ba8ec0 + c9d6dee commit 9bc90bf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nixos/modules/misc/locate.nix
Expand Up @@ -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 ];
Expand Down

0 comments on commit 9bc90bf

Please sign in to comment.