nixos/borgbackup: add listOf str types to extraArgs
This commit is contained in:
@@ -602,53 +602,56 @@ in {
|
||||
};
|
||||
|
||||
extraArgs = mkOption {
|
||||
type = types.str;
|
||||
type = with types; coercedTo (listOf str) escapeShellArgs str;
|
||||
description = lib.mdDoc ''
|
||||
Additional arguments for all {command}`borg` calls the
|
||||
service has. Handle with care.
|
||||
'';
|
||||
default = "";
|
||||
example = "--remote-path=/path/to/borg";
|
||||
default = [ ];
|
||||
example = [ "--remote-path=/path/to/borg" ];
|
||||
};
|
||||
|
||||
extraInitArgs = mkOption {
|
||||
type = types.str;
|
||||
type = with types; coercedTo (listOf str) escapeShellArgs str;
|
||||
description = lib.mdDoc ''
|
||||
Additional arguments for {command}`borg init`.
|
||||
Can also be set at runtime using `$extraInitArgs`.
|
||||
'';
|
||||
default = "";
|
||||
example = "--append-only";
|
||||
default = [ ];
|
||||
example = [ "--append-only" ];
|
||||
};
|
||||
|
||||
extraCreateArgs = mkOption {
|
||||
type = types.str;
|
||||
type = with types; coercedTo (listOf str) escapeShellArgs str;
|
||||
description = lib.mdDoc ''
|
||||
Additional arguments for {command}`borg create`.
|
||||
Can also be set at runtime using `$extraCreateArgs`.
|
||||
'';
|
||||
default = "";
|
||||
example = "--stats --checkpoint-interval 600";
|
||||
default = [ ];
|
||||
example = [
|
||||
"--stats"
|
||||
"--checkpoint-interval 600"
|
||||
];
|
||||
};
|
||||
|
||||
extraPruneArgs = mkOption {
|
||||
type = types.str;
|
||||
type = with types; coercedTo (listOf str) escapeShellArgs str;
|
||||
description = lib.mdDoc ''
|
||||
Additional arguments for {command}`borg prune`.
|
||||
Can also be set at runtime using `$extraPruneArgs`.
|
||||
'';
|
||||
default = "";
|
||||
example = "--save-space";
|
||||
default = [ ];
|
||||
example = [ "--save-space" ];
|
||||
};
|
||||
|
||||
extraCompactArgs = mkOption {
|
||||
type = types.str;
|
||||
type = with types; coercedTo (listOf str) escapeShellArgs str;
|
||||
description = lib.mdDoc ''
|
||||
Additional arguments for {command}`borg compact`.
|
||||
Can also be set at runtime using `$extraCompactArgs`.
|
||||
'';
|
||||
default = "";
|
||||
example = "--cleanup-commits";
|
||||
default = [ ];
|
||||
example = [ "--cleanup-commits" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user