Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions nixos/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,24 @@
enable = true;
package = pkgs.plocate;
interval = "hourly";
# Restates the option default (nixos/modules/misc/locate.nix) because
# assigning prunePaths replaces it, and adds the generated fleet tree:
# git worktrees and the watcher-bench fixture corpora (e.g.
# watcher-bench-195/fixtures/manydirs) have no locate value and are
# enormous. updatedb exhausted its fd limit scanning manydirs, exited
# 1, and the coincidentally-failed unit made an otherwise-healthy
# `nixos-rebuild switch` report failure (#10589). Prune it instead.
prunePaths = [
"/tmp"
"/var/tmp"
"/var/cache"
"/var/lock"
"/var/run"
"/var/spool"
"/nix/store"
"/nix/var/log/nix"
"/home/user/git/fleet"
];
#localuser = null;
};
displayManager = {
Expand Down