about summary refs log tree commit diff
path: root/nixos/modules/misc/locate.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-09-26nixos/locate: remove `nixpkgs.config` usageK9001-3/+1
2022-08-27nixos/*: literalDocBook -> literalMDpennae1-2/+2
no change to rendered output
2022-08-06nixos/*: automatically convert option docspennae1-4/+4
2022-08-05nixos/*: normalize manpage references to single-line formpennae1-2/+1
now nix-doc-munge will not introduce whitespace changes when it replaces manpage references with the MD equivalent. no change to the manpage, changes to the HTML manual are whitespace only.
2022-07-30treewide: automatically md-convert option descriptionspennae1-12/+12
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-05-17nixos/locate: clarification in warning message (#173247)Daniel Beecham1-1/+1
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-03-26findutils: move {locate,updatedb} to a separate $locate outputArtturin1-1/+1
https://github.com/NixOS/nixpkgs/issues/53925
2022-03-16nixos/locate: disable default findutils pruneNamesAlyssa Ross1-1/+5
It doesn't make sense to have a default value for this that's incompatible with the default locate implementation. It means that just doing services.locate.enable = true; generates a warning, even if you don't care about pruning anything. So only use the default prune list if the locate implementation supports it (i.e., isn't findutils).
2022-01-24nixos/locate Add support for plocate (#156185)Eirik Nygaard1-59/+91
2021-11-30Merge pull request #146345 from SuperSandro2000/locate-pruneBindMountsSandro1-1/+1
2021-11-30Merge pull request #146336 from SuperSandro2000/locate-fsSandro1-4/+18
2021-11-18Merge pull request #146344 from SuperSandro2000/locate-prune-namesSandro1-1/+1
2021-11-17nixos/locate: PRUNE_BIND_MOUNTSFR -> PRUNE_BIND_MOUNTSSandro Jäckel1-1/+1
PRUNE_BIND_MOUNTSFR seems to be a typo. The man page only mentions it in a header and further in the paragraph it is PRUNE_BIND_MOUNTS. Also breaks plocate which complains about the unknown option.
2021-11-17nixos/locate: exclude by default version control systems and .cacheSandro1-1/+1
follows Debian and Ubuntu
2021-11-17nixos/locate: include missing filesystemsSandro1-4/+18
taken from Ubuntu config
2021-11-17nixos/locate: ignore nix logsSandro1-1/+1
2021-10-04nixos/doc: clean up defaults and examplesNaïm Favier1-2/+2
2021-03-29locate.nix: write /etc/updatedb.confmilahu1-1/+16
2021-01-24treewide: fix double quoted strings in meta.descriptionvolth1-1/+1
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2020-12-10nixos/locate: Exclude fuse.sshfsScott Worley1-0/+1
The "fuse" and "sshfs" entries already present are not keeping this find invocation out of sshfs mounts, which present as fstype "fuse.sshfs"
2020-11-22nixos/locate: Whitespace: One pruneFS default per lineScott Worley1-1/+65
This makes merging less painful. This is nixfmt's preferred format.
2020-08-25Merge pull request #79239 from andersk/mlocate-warningAnderson Torres1-1/+1
locate: Clarify mlocate warning message
2020-03-25locate: Clarify mlocate warning messageAnders Kaseorg1-1/+1
Make it clear that the warning is that updatedb will run as root, not that locate will only run as root. Also explain how to silence the warning. Fixes #30864. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-02-01nixos/locate: don't create /var/cacheJörg Thalheim1-7/+0
This is already handled by the default systemd tmpfiles. fixes #78941
2019-12-10nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger1-0/+5
A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
2019-10-08locate.nix: Don't create /var/cacheEelco Dolstra1-1/+4
Fixes setting up tmpfiles [/etc/tmpfiles.d/var.conf:19] Duplicate line for path "/var/cache", ignoring.
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-1/+1
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink1-1/+1
2018-03-27locate: fix `update-locatedb` service for `mlocate`Anthony Cowley1-2/+15
This fixes the `update-locatedb` service when using the `mlocate` package. The service as-is does not properly handle flags during update of the relevant database when configured to use the `mlocate` package. The man entry for `updatedb` associated with `mlocate` does not say that it supports environment variables in place of command line flags, whereas the `findutils` package's updatedb does so. To support this distinction, we pass the relevant settings as flags to the `updatedb` program when using the `mlocate` package. Fixes #29279
2017-10-11nixos/locatedb: fix first run when /var/cache doesn't existFlorian Jacob1-2/+10
by using systemd-tmpfiles. Also document what's happening there.
2017-10-11nixos/locatedb: path restriction options were renamedFlorian Jacob1-2/+2
in systemd 231.
2017-05-28locate: does not use localuser for mlocateromildo1-1/+1
2017-05-28locate: fix creation of the parent directory of of locate databaseromildo1-1/+1
2017-03-02locate: fix security.wrappersGregor Kleen1-2/+2
2017-01-29Switching locate over to new wrapper APIParnell Springmeyer1-9/+10
2017-01-26locate: build in correct dbpathGregor Kleen1-0/+6
2017-01-26locate: enhance mlocate supportGregor Kleen1-15/+65
2017-01-26locate: better mlocate support & cleanupGregor Kleen1-9/+3
2016-10-25mlocate: init at version 0.26Andrew Scott1-1/+10
2016-04-14nixos.locate: fix update-locatedb service failureRicardo M. Correia1-1/+1
It was failing with a `Read-only filesystem` failure due to the systemd service option `ReadWriteDirectories` not being correctly configured. Fixes #14132
2016-02-27Improve services.locate.period deprecation messageEelco Dolstra1-1/+3
2016-01-23nixos: update-locatedb - harden via systemd (#7220)Dan Peebles1-61/+66
Also, use systemd timers. Most of the work is by @thoughtpolice but I changed enough of it to warrant changing commit author.
2015-08-03nixos: Fix manpages from 8c652379df07f88d6b434fe1042e9a9ba9078440William A. Kennington III1-1/+1
2015-08-03Spelling etcEelco Dolstra1-5/+5
2015-08-02locate: option includeStoreProfpatsch1-1/+9
2014-08-28Quote paths from example & default attributes.Nicolas Pierron1-1/+1
2014-06-24locate service: allow customisationMateusz Kowalczyk1-8/+31
Fixes #2961
2014-04-14Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra1-2/+2
Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
2013-10-30Add lots of missing option typesEelco Dolstra1-2/+3
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra1-0/+62