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

What is the nix --store runtime? #94

Open
dnkmmr69420 opened this issue Apr 12, 2024 · 3 comments
Open

What is the nix --store runtime? #94

dnkmmr69420 opened this issue Apr 12, 2024 · 3 comments

Comments

@dnkmmr69420
Copy link

I can't find any explanation for it

@kai-tub
Copy link

kai-tub commented Apr 12, 2024

Hey, I was asking myself the same question and I believe it refers to the direct local-store implementation in nix:

This store type accesses a Nix store in the local filesystem directly (i.e. not via the Nix daemon). [...]
A store that uses a root other than / is called a chroot store. With such stores, the store directory is "logically" still /nix/store, so programs stored in them can only be built and executed by chroot-ing into root. Chroot stores only support building and running on Linux when mount namespaces and user namespaces are enabled.

https://nixos.org/manual/nix/stable/store/types/local-store

@dnkmmr69420
Copy link
Author

What are the advantages of this anyways?

@DavHau
Copy link
Owner

DavHau commented Apr 15, 2024

  • we could potentially get rid of bubblewrap if the nix local-store sandbox turns out to be reliable.
  • using nix to set up the sandbox is less complex than passing all the right flags to bubblewrap
  • we help debugging the nix local-store upstream mechanism by using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants