Refactor path handling

* Moves the default coreutils path into base permissions to allow
  override.
* Makes paths defined *later* in the permissions list appear *earlier*
  which should have the effect of later calls to `add-path` override
  binaries provided by earlier ones.
* Makes the `path` variable on state a list rather than a string.
This commit is contained in:
Alex David 2025-08-07 16:26:18 -07:00
commit 06c7210127
4 changed files with 7 additions and 5 deletions

View file

@ -5,6 +5,7 @@ pkgs: let helpers = import ./helpers.nix pkgs; in combinators: with combinators;
(unsafe-add-raw-args "--tmpfs ~")
(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")