Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Nix configure itself better when it runs in the sandbox #8698

Open
roberth opened this issue Jul 14, 2023 · 0 comments
Open

Make Nix configure itself better when it runs in the sandbox #8698

roberth opened this issue Jul 14, 2023 · 0 comments
Labels
feature Feature request or proposal settings Settings, global flags, nix.conf

Comments

@roberth
Copy link
Member

roberth commented Jul 14, 2023

Is your feature request related to a problem? Please describe.

When running nix inside the nix sandbox, users have to perform a lot of nontrivial setup just to get instantiation to work.

Describe the solution you'd like

Nix should detect that it is run in the sandbox, and then adapt (some of) its default configuration to comply with the restrictions.

It should not automatically relocate its store, as that would be a problem for

It should configure --offline when it is in the sandbox and it is not a fixed-output derivation sandbox.

This might necessitate extra environment variables that are set in the sandbox.

Describe alternatives you've considered

  • Add generic test setup logic to Nixpkgs, as tests could use a relocated store anyway, but this wouldn't help RFC 92

  • Try to set --offline in Nixpkgs.

Additional context

Priorities

Add 👍 to issues you find important.

@roberth roberth added feature Feature request or proposal settings Settings, global flags, nix.conf labels Jul 14, 2023
@roberth roberth changed the title Make the Nix configure itself better when it runs in the sandbox Make Nix configure itself better when it runs in the sandbox Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal settings Settings, global flags, nix.conf
Projects
None yet
Development

No branches or pull requests

1 participant