Skip to content

Commit 73b6567

Browse files
doc: change allowInsecurePredicate example to a useful one
1 parent 28edb9d commit 73b6567

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/using/configuration.chapter.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ There are several ways to tweak how Nix handles a package which has been marked
154154

155155
The `allowInsecurePredicate` option is a function which accepts a package and returns a boolean, much like `allowUnfreePredicate`.
156156

157-
The following configuration example only allows insecure packages with very short names:
157+
The following configuration example allows any version of the `ovftool` package:
158158

159159
```nix
160160
{
161-
allowInsecurePredicate = pkg: builtins.stringLength (lib.getName pkg) <= 5;
161+
allowInsecurePredicate = pkg: builtins.elem (lib.getName pkg) [
162+
"ovftool"
163+
];
162164
}
163165
```
164166

0 commit comments

Comments
 (0)