nixos-config/nixos/machines/chungus/disko-syncoid.nix

24 lines
669 B
Nix
Raw Normal View History

2023-08-28 22:53:55 +02:00
{ ... }:
{
services.syncoid = {
enable = true;
commands.service2 = {
source = "zroot/services2";
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 = [
# Does not create new snapshot, only transfers existing
2023-08-28 22:53:55 +02:00
"--no-sync-snap"
];
};
}