aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
authorAlexander Bantyev <balsoft@balsoft.ru>2021-07-02 15:36:14 +0300
committerAlexander Bantyev <balsoft@balsoft.ru>2021-07-16 23:26:04 +0300
commit3e57e3480b372ed9c5dffc1025eae5773b8691e7 (patch)
tree7bde7a792f568154ce8ffdca57071f4d6e310ad2 /src/libstore/globals.hh
parentdb4d4cf4ba42727edd8cc5a6c516554fb8a6b688 (diff)
Add use-registries config option (and deprecate --no-registries flag)
Some people want to avoid using registries at all on their system; Instead of having to add --no-registries to every command, this commit allows to set use-registries = false in the config. --no-registries is still allowed everywhere it was allowed previously, but is now deprecated. Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index dd570cd63..a52d20376 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -956,6 +956,9 @@ public:
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.
)"};
+
+ Setting<bool> useRegistries{this, true, "use-registries",
+ "Whether to use flake registries for reference resolution"};
};