aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-22 13:19:22 +0200
committerGitHub <noreply@github.com>2020-09-22 13:19:22 +0200
commit5b107f2c5f5bb86042f9f65b022cf0ed0bfaccbd (patch)
tree6d51cd7a13ff30599d1087d01ff89fe7d8e1ba8f /src/libstore/globals.hh
parent35a0ac183858ecb03e313e088562c84fe211e20d (diff)
parentf80ffeb8c9291f7168f098fdaadc15408492f3c2 (diff)
Merge pull request #4038 from maljub01/master
Add a nix.conf option for allowing a symlinked store
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh13
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.
+ )"};
};