about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hm/soispha/conf/unison/default.nix5
1 files changed, 5 insertions, 0 deletions
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];