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

23 lines
669 B
Nix

{ ... }:
{
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
};
commonArgs = [
# Does not create new snapshot, only transfers existing
"--no-sync-snap"
];
};
}