34 lines
948 B
Nix
34 lines
948 B
Nix
{ config, ... }:
|
|
{
|
|
|
|
sops.secrets.syncoid_private_key = {
|
|
key = "rsync_private_key";
|
|
owner = config.services.syncoid.user;
|
|
};
|
|
|
|
services.syncoid = {
|
|
enable = true;
|
|
commands.service2 = {
|
|
source = "zroot/services2";
|
|
target = "zraid/mirror/services2"; # should not be created up front!
|
|
};
|
|
commands.paperless = {
|
|
source = "zroot/paperless";
|
|
target = "zraid/mirror/paperless"; # should not be created up front!
|
|
};
|
|
commands.postgresql = {
|
|
source = "zroot/postgresql";
|
|
target = "zraid/mirror/postgresql"; # should not be created up front!
|
|
};
|
|
commands.photoprism = {
|
|
sshKey = config.sops.secrets.syncoid_private_key.path;
|
|
source = "root@orbi:zmedia/photoprism";
|
|
target = "zraid/mirror/photoprism"; # should not be created up front!
|
|
};
|
|
commonArgs = [
|
|
# Does not create new snapshot, only transfers existing
|
|
"--no-sync-snap"
|
|
];
|
|
};
|
|
|
|
}
|