Add jsonschema test case

This commit is contained in:
Qubasa
2024-05-03 18:22:20 +02:00
parent 346707ea8d
commit 83f07816a3
4 changed files with 48 additions and 1 deletions

View File

@@ -50,5 +50,26 @@
];
description = "A list of enabled kernel modules";
};
destinations = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule (
{ name, ... }:
{
options = {
name = lib.mkOption {
type = lib.types.strMatching "^[a-zA-Z0-9._-]+$";
default = name;
description = "the name of the backup job";
};
repo = lib.mkOption {
type = lib.types.str;
description = "the borgbackup repository to backup to";
};
};
}
)
);
default = { };
};
};
}