diff options
author | Kevin Quick <kquick@galois.com> | 2020-09-29 08:32:06 -0700 |
---|---|---|
committer | Kevin Quick <kquick@galois.com> | 2020-09-29 08:32:06 -0700 |
commit | 66c3959e8ca73ff59faacc319a47b6f93a66be64 (patch) | |
tree | 076892d5ef8b3d5d81ead006351bc460e7a08b09 /src/libstore/globals.hh | |
parent | 5a35cc29bffc88b88f883dfcdd1bb251eab53ecd (diff) | |
parent | e2d398c200023a0d1e0054c536e7f6438bd2b139 (diff) |
Merge branch 'master' into access-tokens
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index bd36ffc17..3b8ccadf3 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -2,7 +2,6 @@ #include "types.hh" #include "config.hh" -#include "abstractsettingtojson.hh" #include "util.hh" #include <map> @@ -930,6 +929,19 @@ public: Setting<std::string> flakeRegistry{this, "https://github.com/NixOS/flake-registry/raw/master/flake-registry.json", "flake-registry", "Path or URI of the global flake registry."}; + + Setting<bool> allowSymlinkedStore{ + this, false, "allow-symlinked-store", + R"( + If set to `true`, Nix will stop complaining if the store directory + (typically /nix/store) contains symlink components. + + This risks making some builds "impure" because builders sometimes + "canonicalise" paths by resolving all symlink components. Problems + occur if those builds are then deployed to machines where /nix/store + resolves to a different location from that of the build machine. You + can enable this setting if you are sure you're not going to do that. + )"}; }; |