2023-08-28 22:53:55 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.syncoid = {
|
|
|
|
enable = true;
|
|
|
|
commands.service2 = {
|
|
|
|
source = "zroot/services2";
|
2024-03-11 12:33:40 +01:00
|
|
|
target = "zraid/mirror/services2"; # needs to be created but not named in disko-config.nix
|
|
|
|
};
|
|
|
|
commands.paperless = {
|
|
|
|
source = "zroot/paperless";
|
|
|
|
target = "zraid/mirror/paperless"; # needs to be created but not named in disko-config.nix
|
|
|
|
};
|
|
|
|
commands.postgresql = {
|
|
|
|
source = "zroot/postgresql";
|
|
|
|
target = "zraid/mirror/postgresql"; # needs to be created but not named in disko-config.nix
|
2023-08-28 22:53:55 +02:00
|
|
|
};
|
|
|
|
commonArgs = [
|
2024-03-11 12:33:40 +01:00
|
|
|
# Does not create new snapshot, only transfers existing
|
2023-08-28 22:53:55 +02:00
|
|
|
"--no-sync-snap"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|