aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/globals.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r--src/libstore/globals.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index d360e5c5e..1aeb462d4 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -981,7 +981,10 @@ public:
)"};
Setting<uint64_t> maxFree{
- this, std::numeric_limits<uint64_t>::max(), "max-free",
+ // n.b. this is deliberately int64 max rather than uint64 max because
+ // this goes through the Nix language JSON parser and thus needs to be
+ // representable in Nix language integers.
+ this, std::numeric_limits<int64_t>::max(), "max-free",
R"(
When a garbage collection is triggered by the `min-free` option, it
stops as soon as `max-free` bytes are available. The default is