fix tests
This commit is contained in:
parent
8985927f8c
commit
7e5a447257
2 changed files with 12 additions and 1 deletions
|
@ -155,6 +155,16 @@ let
|
|||
description = "OIDC endpoint for SSO";
|
||||
example = "https://authelia.example.com";
|
||||
};
|
||||
|
||||
backupCfg = lib.mkOption {
|
||||
type = lib.types.anything;
|
||||
description = "Backup configuration for ${name}.";
|
||||
default = {};
|
||||
example = {
|
||||
backend = "restic";
|
||||
repositories = [];
|
||||
};
|
||||
};
|
||||
} // (c.moreOptions or {});
|
||||
};
|
||||
});
|
||||
|
@ -309,7 +319,7 @@ config.xml" templatedSettings) "${config.services.radarr.dataDir}/config.xml" (
|
|||
|
||||
shb.backup.instances =
|
||||
let
|
||||
backupConfig = name: _defaults: {
|
||||
backupConfig = name: _defaults: lib.mkIf (cfg.${name}.backupCfg != {}) {
|
||||
${name} = {
|
||||
sourceDirectories = [
|
||||
config.shb.arr.${name}.dataDir
|
||||
|
|
|
@ -36,6 +36,7 @@ in
|
|||
{
|
||||
testArrNoOptions = {
|
||||
expected = {
|
||||
systemd.services.radarr = {};
|
||||
systemd.services.jackett = {};
|
||||
shb.backup = {};
|
||||
shb.nginx.autheliaProtect = [];
|
||||
|
|
Loading…
Reference in a new issue