aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/default.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-12-23 22:00:53 +0000
committerLassulus <github@lassul.us>2019-12-23 23:18:05 +0100
commitfce5826802ca36d451978baa83a97bfbc1d2475f (patch)
treec0011e1e6da634b47c25a537da93516c33f74c54 /pkgs/populate/default.nix
parentfff9b24ec98515cdd19cb3d6490b6214bacae792 (diff)
populate: re-add default values for useChecksum/exclude
Turns out, those where required.
Diffstat (limited to 'pkgs/populate/default.nix')
-rw-r--r--pkgs/populate/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix
index 3e02aea..acabc02 100644
--- a/pkgs/populate/default.nix
+++ b/pkgs/populate/default.nix
@@ -156,11 +156,11 @@ let
source_path=$source_path/
fi
${rsync}/bin/rsync \
- ${optionalString config.useChecksum /* sh */ "--checksum"} \
+ ${optionalString (config.useChecksum or false) /* sh */ "--checksum"} \
${optionalString target.sudo /* sh */ "--rsync-path=\"sudo rsync\""} \
${concatMapStringsSep " "
(pattern: /* sh */ "--exclude ${quote pattern}")
- config.exclude} \
+ (config.exclude or [])} \
-e ${quote (ssh' target)} \
-vFrlptD \
--delete-excluded \