diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-09-22 14:18:31 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-09-22 14:18:31 +0000 |
commit | e9fc2031f0c89fe65609ce6a8211186d164152fb (patch) | |
tree | 6d14122f07ddd72cbc44ca12125461fc53e1b17a /src/libstore/globals.hh | |
parent | b92d3b2eddcbd87d2d4b6bbbc3c99e5fedcb3a99 (diff) | |
parent | 980edd1f3a31eefe297d073f6a7cff099f21eb4a (diff) |
Merge remote-tracking branch 'upstream/master' into templated-daemon-protocol
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 8a2d3ff75..ebcfa9d80 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -880,6 +880,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. + )"}; }; |