Backup roam directory with unison
This commit is contained in:
parent
5692a37c88
commit
fd793b791d
3 changed files with 26 additions and 0 deletions
24
hmModules/unison/default.nix
Normal file
24
hmModules/unison/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -98,6 +98,7 @@
|
|||
"pantalaimon"
|
||||
"moonlight"
|
||||
"gimp"
|
||||
"unison"
|
||||
];
|
||||
extraGroups = [ "plugdev" ];
|
||||
backupPaths = [ ];
|
||||
|
|
|
@ -113,6 +113,7 @@
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils
|
||||
unison
|
||||
];
|
||||
|
||||
powerManagement.scsiLinkPolicy = "med_power_with_dipm";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue