From 4761669c9af869921f16a3fa14d08fc4571d175d Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 23 Feb 2024 21:10:22 +0100 Subject: feat(hm/conf/unison): Add support for link syncing --- hm/soispha/conf/unison/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hm/soispha') diff --git a/hm/soispha/conf/unison/default.nix b/hm/soispha/conf/unison/default.nix index 9703068d..94824fc9 100644 --- a/hm/soispha/conf/unison/default.nix +++ b/hm/soispha/conf/unison/default.nix @@ -116,6 +116,7 @@ lib.strings.concatStringsSep " " [ "unison" "${serialiseArgs unisonOptions}" + "$EXTRA_OPTIONS" "${getIgnored paths_to_ignore path}" "${esa path}" (esa "ssh://${config.home.username}@${hostName}.fritz.box/${path}") @@ -135,6 +136,10 @@ in { src = builtins.toFile "unison-backup" ('' #!/usr/bin/env sh export UNISON=${esa unisonPath}; + if [ "$1" = "links" ]; then + EXTRA_OPTIONS="-links=true"; + fi + EXTRA_OPTIONS="$EXTRA_OPTIOS $*" '' + script); dependencies = with pkgs; [unison openssh]; -- cgit 1.4.1