From f0e2843d199907779767e148e9f2997409ddce26 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 21 Dec 2020 12:33:46 +0100 Subject: [PATCH] Reformat restic module --- modules/restic.nix | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) 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 {