diff --git a/modules/restic.nix b/modules/restic.nix index 65eeea7..3e55571 100644 --- a/modules/restic.nix +++ b/modules/restic.nix @@ -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 {