mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos/borgbackup: use coercedTo instead of apply on paths
(#53756)
so multiple declarations merge properly
This commit is contained in:
parent
63b88f668b
commit
4d68e82dbc
1 changed files with 1 additions and 2 deletions
|
@ -191,10 +191,9 @@ in {
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
paths = mkOption {
|
paths = mkOption {
|
||||||
type = with types; either path (listOf str);
|
type = with types; coercedTo str lib.singleton (listOf str);
|
||||||
description = "Path(s) to back up.";
|
description = "Path(s) to back up.";
|
||||||
example = "/home/user";
|
example = "/home/user";
|
||||||
apply = x: if isList x then x else [ x ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
repo = mkOption {
|
repo = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue