From a24f2c9b8413ebc8b1776ab3f770c69e4a03007b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Jun 2016 16:51:43 +0200 Subject: nix run: Mount the Nix store in a private namespace This is a convenience command to allow users who are not privileged to create /nix/store to use Nix with regular binary caches. For example, $ NIX_REMOTE="local?state=$HOME/nix/var&real=/$HOME/nix/store" nix run firefox bashInteractive will download Firefox and bash from cache.nixos.org, then start a shell in which $HOME/nix/store is mounted on /nix/store. --- src/libstore/local-store.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstore') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 3a2568ec9479..0c2766f667ec 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -73,6 +73,8 @@ private: Sync _state; +public: + const Path realStoreDir; const Path dbDir; const Path linksDir; @@ -80,6 +82,8 @@ private: const Path schemaPath; const Path trashDir; +private: + bool requireSigs; PublicKeys publicKeys; -- cgit 1.4.1