diff options
author | Yorick <yorickvanpelt@gmail.com> | 2019-01-10 16:34:02 +0100 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2019-01-10 16:34:02 +0100 |
commit | 4d68e82dbc3d01977e3d1afb22ace731a4b5998c (patch) | |
tree | f2d4952dc4c6df94186ec1e53f849fc85a2e2ff5 /nixos | |
parent | 63b88f668b1087e0a55b40c11af457d107e39d02 (diff) | |
download | nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.tar nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.tar.gz nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.tar.bz2 nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.tar.lz nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.tar.xz nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.tar.zst nixpkgs-4d68e82dbc3d01977e3d1afb22ace731a4b5998c.zip |
nixos/borgbackup: use coercedTo instead of apply on `paths` (#53756)
so multiple declarations merge properly
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/backup/borgbackup.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix index bf41aee8fe0..2ad116a7872 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 { |