From 5287d0146d0cab7ef0186cf26835be296d0470aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 17 Nov 2021 04:26:42 +0100 Subject: [PATCH] nixos/locate: PRUNE_BIND_MOUNTSFR -> PRUNE_BIND_MOUNTS 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. --- nixos/modules/misc/locate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index 2f2986c2fec..6ee66d5da12 100644 --- a/nixos/modules/misc/locate.nix +++ b/nixos/modules/misc/locate.nix @@ -202,7 +202,7 @@ in { PRUNEFS="${lib.concatStringsSep " " cfg.pruneFS}" PRUNENAMES="${lib.concatStringsSep " " cfg.pruneNames}" PRUNEPATHS="${lib.concatStringsSep " " cfg.prunePaths}" - PRUNE_BIND_MOUNTSFR="${lib.boolToString cfg.pruneBindMounts}" + PRUNE_BIND_MOUNTS="${if cfg.pruneBindMounts then "yes" else "no"}" ''; }; };