From 0e12e45e8b2684d2769fb15ffd958286f2726b0e Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 23 Feb 2024 21:08:49 +0100 Subject: refactor(hm/conf/unison): Rename the script to `unison-sync` 'Backup' is in this context just wrong. --- hm/soispha/conf/unison/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hm/soispha') diff --git a/hm/soispha/conf/unison/default.nix b/hm/soispha/conf/unison/default.nix index 831993c1..9703068d 100644 --- a/hm/soispha/conf/unison/default.nix +++ b/hm/soispha/conf/unison/default.nix @@ -99,6 +99,7 @@ else if builtins.typeOf val == "list" then lib.strings.concatStringsSep " " (builtins.map (serialiseArg key) val) else builtins.throw "Unsupported type: ${builtins.typeOf val}"; + serialiseArgs = args: lib.strings.concatStringsSep " " ( lib.attrsets.mapAttrsToList @@ -130,7 +131,7 @@ in { home.packages = [ pkgs.unison (sysLib.writeShellScript { - name = "unison-backup"; + name = "unison-sync"; src = builtins.toFile "unison-backup" ('' #!/usr/bin/env sh export UNISON=${esa unisonPath}; -- cgit 1.4.1