From 89f0755f2b076b5cd54cd81c0d82de1d177c5958 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 2 Jan 2018 13:03:56 +0100 Subject: configurable lock-wait --- custom/borgbackup.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix index 7f2b0916..0c497b6a 100644 --- a/custom/borgbackup.nix +++ b/custom/borgbackup.nix @@ -35,6 +35,11 @@ let type = types.bool; default = true; }; + + lockWait = mkOption { + type = types.int; + default = 600; + }; }; }; in { @@ -91,7 +96,7 @@ in { script = let borgCmd = '' borg create \ - --lock-wait 600 \ + --lock-wait ${tCfg.lockWait} \ --stats \ --list \ --filter 'AME' \ @@ -125,6 +130,7 @@ in { script = concatStringsSep "\n" (mapAttrsToList (path: args: '' borg prune \ + --lock-wait ${tCfg.lockWait} \ --list \ --stats \ --prefix "${cfg.prefix}${path}" \ -- cgit v1.2.3