Backup roam directory with unison

This commit is contained in:
Andrea Ciceri 2025-05-21 17:58:55 +02:00
parent 5692a37c88
commit fd793b791d
No known key found for this signature in database
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ pkgs, lib, ... }:
{
home.packages = [ pkgs.unison ];
services.unison = {
enable = true;
pairs = {
"roam" = {
roots = [
# Pair of roots to synchronize
"/home/ccr/roam"
"ssh://root@sisko.wg.aciceri.dev//mnt/hd/roam"
];
commandOptions = {
auto = "true";
batch = "true";
log = "false";
repeat = "watch";
sshcmd = lib.getExe pkgs.openssh;
ui = "text";
};
};
};
};
}