Reformat restic module

This commit is contained in:
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

View file

@ -48,17 +48,14 @@ 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 (builtins.elemAt
options.services.restic.backups.type.getSubModules options.services.restic.backups.type.getSubModules
0 0
).imports ).imports
0) 0)
{ name = ""; } { name = ""; }).options.timerConfig
).options.timerConfig
{ {
default = { default = {
OnCalendar = "20:00"; OnCalendar = "20:00";