Reformat restic module
This commit is contained in:
parent
5f56b5a3a7
commit
f0e2843d19
|
@ -48,23 +48,20 @@ in
|
|||
{
|
||||
options.sbruder.restic = {
|
||||
enable = lib.mkEnableOption "restic";
|
||||
timerConfig =
|
||||
lib.recursiveUpdate
|
||||
(
|
||||
(builtins.elemAt
|
||||
(builtins.elemAt
|
||||
options.services.restic.backups.type.getSubModules
|
||||
0
|
||||
).imports
|
||||
0)
|
||||
{ name = ""; }
|
||||
).options.timerConfig
|
||||
{
|
||||
default = {
|
||||
OnCalendar = "20:00";
|
||||
RandomizedDelaySec = "2h";
|
||||
};
|
||||
timerConfig = lib.recursiveUpdate
|
||||
((builtins.elemAt
|
||||
(builtins.elemAt
|
||||
options.services.restic.backups.type.getSubModules
|
||||
0
|
||||
).imports
|
||||
0)
|
||||
{ name = ""; }).options.timerConfig
|
||||
{
|
||||
default = {
|
||||
OnCalendar = "20:00";
|
||||
RandomizedDelaySec = "2h";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
Loading…
Reference in a new issue