Only expose runtime closure by default

Instead of binding the entire `/nix/store`. This behavior can be changed
by overriding `basePermissions`.
This commit is contained in:
Alex David 2025-08-17 16:05:20 -07:00
commit 7d3efead61
4 changed files with 157 additions and 1 deletions

View file

@ -6,10 +6,10 @@ pkgs: let helpers = import ./helpers.nix pkgs; in combinators: with combinators;
(unsafe-add-raw-args "--clearenv")
(unsafe-add-raw-args "--die-with-parent")
(add-pkg-deps [ pkgs.coreutils ])
(readonly "/nix/store")
(readonly "/bin/sh")
(fwd-env "LANG")
(fwd-env "HOME")
(fwd-env "TERM")
bind-nix-store-runtime-closure
fake-passwd
]