nixos/borgbackup: use coercedTo instead of apply on `paths` (#53756)
so multiple declarations merge properly
commit4d68e82dbc3d01977e3d1afb22ace731a4b5998c
authorYorick <yorickvanpelt@gmail.com>
dateThu 10 Jan 2019, 16:34 (8 years ago)
parent63b88f6
nixos/modules/services/backup/borgbackup.nix+1−2
@@ -191,10 +191,9 @@ in {
191191 options = {
192192
193193 paths = mkOption {
194− type = with types; either path (listOf str);
194+ type = with types; coercedTo str lib.singleton (listOf str);
195195 description = "Path(s) to back up.";
196196 example = "/home/user";
197− apply = x: if isList x then x else [ x ];
198197 };
199198
200199 repo = mkOption {