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

@ -16,7 +16,12 @@ in {
config = mkIf cfg.enable {
services.zfs = {
autoScrub.enable = true;
autoSnapshot.enable = true;
# Still need to set `com.sun:auto-snapshot` to `true` on datasets
# zfs set com.sun:auto-snapshot=true pool/dataset
autoSnapshot = {
enable = true;
flags = "-k -p --utc";
};
};
};
}