From 4d68e82dbc3d01977e3d1afb22ace731a4b5998c Mon Sep 17 00:00:00 2001 From: Yorick Date: Thu, 10 Jan 2019 16:34:02 +0100 Subject: [PATCH] nixos/borgbackup: use coercedTo instead of apply on `paths` (#53756) so multiple declarations merge properly --- nixos/modules/services/backup/borgbackup.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix index bf41aee8fe0e..2ad116a7872a 100644 --- a/nixos/modules/services/backup/borgbackup.nix +++ b/nixos/modules/services/backup/borgbackup.nix @@ -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 {