Added syncoid service

Sets up ZFS replication. Syncoid modules handles configuration for both
the remote and the target but I'm thinking I should split this up in the
future.
This commit is contained in:
Alejandro Angulo 2023-08-03 17:21:58 -07:00
parent 30a6e58691
commit ff6fa1c1f3
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
4 changed files with 108 additions and 1 deletions

View file

@ -28,6 +28,13 @@
enable = true;
acmeCertName = "kilonull.com";
};
services.syncoid = {
# sudo -u backups zfs create -o mountpoint=/tank/backups/gospel tank/backups/gospel
enable = true;
remoteTargetUser = "backups";
remoteTargetDatasets = ["tank/backups"];
remoteTargetPublicKeys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAhA+9O2OBMDH1Xnj6isu36df5TOdZG8aEA4JpN2K60e syncoid@gospel"];
};
security.acme = {
enable = true;