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";
};
};
};
};
}

View file

@ -98,6 +98,7 @@
"pantalaimon"
"moonlight"
"gimp"
"unison"
];
extraGroups = [ "plugdev" ];
backupPaths = [ ];

View file

@ -113,6 +113,7 @@
environment.systemPackages = with pkgs; [
cifs-utils
unison
];
powerManagement.scsiLinkPolicy = "med_power_with_dipm";