1
0
Fork 0

fix tests

This commit is contained in:
ibizaman 2023-11-16 23:00:53 -08:00 committed by Pierre Penninckx
parent 8985927f8c
commit 7e5a447257
2 changed files with 12 additions and 1 deletions

View file

@ -155,6 +155,16 @@ let
description = "OIDC endpoint for SSO"; description = "OIDC endpoint for SSO";
example = "https://authelia.example.com"; 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 {}); } // (c.moreOptions or {});
}; };
}); });
@ -309,7 +319,7 @@ config.xml" templatedSettings) "${config.services.radarr.dataDir}/config.xml" (
shb.backup.instances = shb.backup.instances =
let let
backupConfig = name: _defaults: { backupConfig = name: _defaults: lib.mkIf (cfg.${name}.backupCfg != {}) {
${name} = { ${name} = {
sourceDirectories = [ sourceDirectories = [
config.shb.arr.${name}.dataDir config.shb.arr.${name}.dataDir

View file

@ -36,6 +36,7 @@ in
{ {
testArrNoOptions = { testArrNoOptions = {
expected = { expected = {
systemd.services.radarr = {};
systemd.services.jackett = {}; systemd.services.jackett = {};
shb.backup = {}; shb.backup = {};
shb.nginx.autheliaProtect = []; shb.nginx.autheliaProtect = [];