add default needed for one way backup contracts

This commit is contained in:
ibizaman 2024-11-26 22:25:52 +01:00
parent ad985b0bc6
commit 8971b56c95
6 changed files with 6 additions and 9 deletions

View file

@ -55,6 +55,7 @@ in
Backup configuration.
'';
default = {};
type = lib.types.submodule {
options = contracts.databasebackup.mkRequester {
user = "postgres";
@ -169,10 +170,5 @@ in
(upgrade-script 15 16)
];
}
{
# Seems superfluous but otherwise we get:
# The option `shb.postgresql.databasebackup' was accessed but has no value defined.
shb.postgresql.databasebackup = {};
}
]);
}

View file

@ -244,6 +244,7 @@ in
description = ''
Backup configuration.
'';
default = {};
type = lib.types.submodule {
options = contracts.backup.mkRequester {
user = options.services.forgejo.user.value;

View file

@ -143,6 +143,7 @@ in
description = ''
Backup configuration.
'';
default = {};
type = lib.types.submodule {
options = contracts.backup.mkRequester {
user = "hass";

View file

@ -154,6 +154,7 @@ in
description = ''
Backup configuration.
'';
default = {};
type = lib.types.submodule {
options = contracts.backup.mkRequester {
user = "jellyfin";

View file

@ -522,6 +522,7 @@ in
description = ''
Backup configuration.
'';
default = {};
type = lib.types.submodule {
options = contracts.backup.mkRequester {
user = "nextcloud";

View file

@ -131,6 +131,7 @@ in
description = ''
Backup configuration.
'';
default = {};
type = lib.types.submodule {
options = contracts.backup.mkRequester {
user = "vaultwarden";
@ -231,9 +232,5 @@ in
# TODO: make this work.
# It does not work because it leads to infinite recursion.
# ${cfg.mount}.path = dataFolder;
# Seems superfluous but otherwise we get:
# The option `shb.vaultwarden.backup' was accessed but has no value defined.
shb.vaultwarden.backup = {};
};
}