DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
870 stars 31 forks source link

What is the `nix --store` runtime? #94

Open dnkmmr69420 opened 5 months ago

dnkmmr69420 commented 5 months ago

I can't find any explanation for it

kai-tub commented 5 months ago

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 commented 5 months ago

What are the advantages of this anyways?

DavHau commented 5 months ago