aboutsummaryrefslogtreecommitdiff
path: root/scripts/nar-herder.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nar-herder.in')
-rw-r--r--scripts/nar-herder.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/nar-herder.in b/scripts/nar-herder.in
index a0e3127..a611018 100644
--- a/scripts/nar-herder.in
+++ b/scripts/nar-herder.in
@@ -148,6 +148,13 @@
"none"
(string->number arg))
(alist-delete 'storage-limit result))))
+ (option '("storage-minimum-free-space") #t #f
+ (lambda (opt name arg result)
+ (alist-cons 'storage-minimum-free-space
+ (if (string=? arg "none")
+ "none"
+ (string->number arg))
+ (alist-delete 'storage-minimum-free-space result))))
;; (stored-on https://other-nar-herder-server)
;; and=((stored-on https://other-nar-herder-server) (stored-on https://different-server))