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:
Robert Schütz 2018-11-30 17:37:50 +01:00 committed by GitHub
parent 66efb76c75
commit 74e283403c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ in {
options = {
paths = mkOption {
type = with types; either path (nonEmptyListOf path);
type = with types; either path (listOf str);
description = "Path(s) to back up.";
example = "/home/user";
apply = x: if isList x then x else [ x ];