mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #79022 from Mic92/locate
nixos/locate: don't create /var/cache
This commit is contained in:
commit
9bc90bff3d
1 changed files with 0 additions and 7 deletions
|
@ -131,13 +131,6 @@ in {
|
||||||
++ optional (isFindutils && cfg.pruneNames != []) "findutils locate does not support pruning by directory component"
|
++ 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";
|
++ 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 =
|
systemd.services.update-locatedb =
|
||||||
{ description = "Update Locate Database";
|
{ description = "Update Locate Database";
|
||||||
path = mkIf (!isMLocate) [ pkgs.su ];
|
path = mkIf (!isMLocate) [ pkgs.su ];
|
||||||
|
|
Loading…
Reference in a new issue