nixos/borgbackup: use coercedTo instead of apply on paths (#53756)

so multiple declarations merge properly
This commit is contained in:
Yorick 2019-01-10 16:34:02 +01:00 committed by Robert Schütz
parent 63b88f668b
commit 4d68e82dbc

View file

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