mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03: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
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user