{lib, ...}: { services.rclone-sync = let sync_defaults = { serviceConfig = {after = ["auto-secrets.service"];}; timerConfig = { OnStartupSec = "60"; OnCalendar = "4h"; }; }; in { enable = true; user = "storage"; sync_jobs = map (x: lib.mkMerge [x sync_defaults]) [ # My B2 { source = "StorageBox:Backups"; dest = "B2-Chaos-Backups:"; id = "chaos_b2_backups"; } { source = "StorageBox:Photos"; dest = "B2-Chaos-Photos:"; id = "chaos_b2_photos"; } { source = "StorageBox:Music"; dest = "B2-Chaos-Music:"; id = "chaos_b2_music"; } # Pheonix System's B2 { source = "StorageBox:Backups"; dest = "B2-Phoenix-Cryptidz-Storage:Backups"; id = "phoenix_b2_backups"; } { source = "StorageBox:Photos"; dest = "B2-Phoenix-Cryptidz-Storage:Photos"; id = "phoenix_b2_photos"; } { source = "StorageBox:Music"; dest = "B2-Phoenix-Cryptidz-Storage:Music"; id = "phoenix_b2_music"; } ]; }; }