diff --git a/hosts/bekkalokk/services/webmail/snappymail.nix b/hosts/bekkalokk/services/webmail/snappymail.nix index d81509e..864b6d9 100644 --- a/hosts/bekkalokk/services/webmail/snappymail.nix +++ b/hosts/bekkalokk/services/webmail/snappymail.nix @@ -14,5 +14,20 @@ in { enableACME = true; kTLS = true; }; -} + services.rsync-pull-targets = { + enable = true; + locations.${cfg.dataDir} = { + user = "root"; + rrsyncArgs.ro = true; + authorizedKeysAttrs = [ + "restrict" + "no-agent-forwarding" + "no-port-forwarding" + "no-pty" + "no-X11-forwarding" + ]; + publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJENMnuNsHEeA91oX+cj7Qpex2defSXP/lxznxCAqV03 snappymail rsync backup"; + }; + }; +}