{ pkgs, lib, config, machineName, ... }: let inherit (config.security) gnupg; in { services.syncoid = { enable = true; interval = "*-*-* *:15:00"; sshKey = gnupg.secrets."/root/.ssh/id_ed25519".path; commonArgs = [ "--no-sync-snap" "--create-bookmark" ]; commands = { "${machineName}/home/julm/work" = { sendOptions = "raw"; target = "root@mermet.sourcephile.fr:rpool/backup/${machineName}/home/julm/work"; }; "${machineName}/var/postgresql" = { sendOptions = "raw"; target = "root@mermet.sourcephile.fr:rpool/backup/${machineName}/var/postgresql"; }; "root@mermet.sourcephile.fr:rpool/var/mail" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/var/mail"; }; "root@mermet.sourcephile.fr:rpool/var/public-inbox" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/var/public-inbox"; }; "root@mermet.sourcephile.fr:rpool/var/www" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/var/www"; }; "root@mermet.sourcephile.fr:rpool/var/git" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/var/git"; }; "root@mermet.sourcephile.fr:rpool/var/redis" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/var/redis"; }; "root@mermet.sourcephile.fr:rpool/home/julm/mail" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/home/julm/mail"; }; "root@mermet.sourcephile.fr:rpool/home/julm/log" = { sendOptions = "raw"; target = "${machineName}/backup/mermet/home/julm/log"; }; }; }; }