nixos/borgbackup: allow paths to be empty or relative (#51275)
This former necessary in order to exclusively use `--pattern` or `--patterns-from`. Fixes #51267.
This commit is contained in:
parent
66efb76c75
commit
74e283403c
@ -191,7 +191,7 @@ in {
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
paths = mkOption {
|
paths = mkOption {
|
||||||
type = with types; either path (nonEmptyListOf path);
|
type = with types; either path (listOf str);
|
||||||
description = "Path(s) to back up.";
|
description = "Path(s) to back up.";
|
||||||
example = "/home/user";
|
example = "/home/user";
|
||||||
apply = x: if isList x then x else [ x ];
|
apply = x: if isList x then x else [ x ];
|
||||||
|
Loading…
Reference in New Issue
Block a user