aboutsummaryrefslogtreecommitdiff
path: root/scripts/nar-herder.in
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-06-23 17:26:22 +0100
committerChristopher Baines <mail@cbaines.net>2024-06-23 17:26:22 +0100
commit34f84adaf3f2c332281ecf0004f5a580c909c290 (patch)
treefc9ec88a43d7ce52d4574d03f40386db7f0687a9 /scripts/nar-herder.in
parent82f9371c714f14ca59efb8d67b20e9c85b5c86d1 (diff)
downloadnar-herder-34f84adaf3f2c332281ecf0004f5a580c909c290.tar
nar-herder-34f84adaf3f2c332281ecf0004f5a580c909c290.tar.gz
Allow specifying the minimum free space
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))