Make combinators available at jail.combinators
Instead of requiring the third argument to be a function that passes in combinators, this exposes all combinators on `jail.combinators` and allows the third argument to just be a list (or even null!). This may be more ergonomic in some contexts (like nixpkgs overlays). This isn't a breaking change, the third argument can still be a function and will receive the combinators if it is.
This commit is contained in:
parent
2f6e7c3078
commit
c5ba72dc5a
4 changed files with 110 additions and 98 deletions
|
|
@ -22,7 +22,7 @@ list](https://lists.sr.ht/~alexdavid/general).
|
|||
ls -la $HOME
|
||||
'';
|
||||
in {
|
||||
packages.x86_64-linux.jailed = jail "my-jail" untrusted-package (combinators: with combinators; [
|
||||
packages.x86_64-linux.jailed = jail "my-jail" untrusted-package (with jail.combinators; [
|
||||
# See combinators section below for more functions that can go here
|
||||
|
||||
# Give program access to the network
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue