add default needed for one way backup contracts (#381)
Co-authored-by: ibizaman <ibizapeanut@gmail.com>
This commit is contained in:
parent
ad985b0bc6
commit
bab4b251eb
6 changed files with 6 additions and 9 deletions
|
|
@ -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 = {};
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -244,6 +244,7 @@ in
|
|||
description = ''
|
||||
Backup configuration.
|
||||
'';
|
||||
default = {};
|
||||
type = lib.types.submodule {
|
||||
options = contracts.backup.mkRequester {
|
||||
user = options.services.forgejo.user.value;
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@ in
|
|||
description = ''
|
||||
Backup configuration.
|
||||
'';
|
||||
default = {};
|
||||
type = lib.types.submodule {
|
||||
options = contracts.backup.mkRequester {
|
||||
user = "hass";
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ in
|
|||
description = ''
|
||||
Backup configuration.
|
||||
'';
|
||||
default = {};
|
||||
type = lib.types.submodule {
|
||||
options = contracts.backup.mkRequester {
|
||||
user = "jellyfin";
|
||||
|
|
|
|||
|
|
@ -522,6 +522,7 @@ in
|
|||
description = ''
|
||||
Backup configuration.
|
||||
'';
|
||||
default = {};
|
||||
type = lib.types.submodule {
|
||||
options = contracts.backup.mkRequester {
|
||||
user = "nextcloud";
|
||||
|
|
|
|||
|
|
@ -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 = {};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue