I am looking for a way to launch a shell with specific packages installed within, but no unnecessary access to the rest of the system, i.e:
- Only the current directory (
pwd
) mounted, no access to other parts of the filesystem* - Only the requested packages being available*, plus the shell
- Being able to disable network access would be a plus
- Generally no access to other parts of the system*
So I'm looking for an environment similar to what can be achieved withdocker
: (orpodman
, etc...)
or Guix:docker run -it -v "$PWD:/pwd" -w /pwd $someImage
guix shell --pure --container --network $somePackage
*except strictly necessary ones
Is this possible with nix
? The advantage would be that storage for the contents of packages is shared with the host system, familiarity with the system, and so on; and, compared to guix
, that Nix has a lot more packages available..