From a992a7b701825fe299358def99c5d9029f68d4cb Mon Sep 17 00:00:00 2001 From: Henri Dohmen Date: Thu, 29 May 2025 23:13:35 +0200 Subject: [PATCH] unison wip --- mod/common/shell.nix | 1 + mod/pc-common/sync.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 mod/pc-common/sync.nix diff --git a/mod/common/shell.nix b/mod/common/shell.nix index 307ffb2..87463df 100644 --- a/mod/common/shell.nix +++ b/mod/common/shell.nix @@ -19,6 +19,7 @@ wget wl-clipboard colmena + unison ]; programs = { diff --git a/mod/pc-common/sync.nix b/mod/pc-common/sync.nix new file mode 100644 index 0000000..365fb0e --- /dev/null +++ b/mod/pc-common/sync.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + home.services.unison = { + enable = true; + package = pkgs.unison; + pairs = { + "docs".roots = [ + "/home/hd/Documents" + "ssh://roam//home/hd/Documents" + ]; + "desktop".roots = [ + "/home/hd/Desktop" + "ssh://roam//home/hd/Desktop" + ]; + }; + }; +}