Reformat restic module

restic-rest-server
Simon Bruder 2020-12-21 12:33:46 +01:00
parent 5f56b5a3a7
commit f0e2843d19
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 13 additions and 16 deletions

View File

@ -48,23 +48,20 @@ in
{ {
options.sbruder.restic = { options.sbruder.restic = {
enable = lib.mkEnableOption "restic"; enable = lib.mkEnableOption "restic";
timerConfig = timerConfig = lib.recursiveUpdate
lib.recursiveUpdate ((builtins.elemAt
( (builtins.elemAt
(builtins.elemAt options.services.restic.backups.type.getSubModules
(builtins.elemAt 0
options.services.restic.backups.type.getSubModules ).imports
0 0)
).imports { name = ""; }).options.timerConfig
0) {
{ name = ""; } default = {
).options.timerConfig OnCalendar = "20:00";
{ RandomizedDelaySec = "2h";
default = {
OnCalendar = "20:00";
RandomizedDelaySec = "2h";
};
}; };
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {