summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt McHenry <github@matt.mchenryfamily.org>2020-01-31 22:06:19 -0500
committerJörg Thalheim <joerg@thalheim.io>2020-02-07 10:25:33 +0000
commit5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e (patch)
tree07ec2095287e3dc2587be4c56108fb787a6ee442
parent4fa2d4b5c3c8ea65d6b9c5c7d19a3c296714855e (diff)
downloadnixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.tar
nixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.tar.gz
nixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.tar.bz2
nixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.tar.lz
nixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.tar.xz
nixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.tar.zst
nixpkgs-5ad71cfe84a49fc27ebcf7c810bcced1361a6e6e.zip
fix pruneCmd to use optionals so multi-element list is preserved
-rw-r--r--nixos/modules/services/backup/restic.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix
index e1dccbba763..2388f1d6ca1 100644
--- a/nixos/modules/services/backup/restic.nix
+++ b/nixos/modules/services/backup/restic.nix
@@ -166,7 +166,7 @@ in
           backupPaths = if (backup.dynamicFilesFrom == null)
                         then concatStringsSep " " backup.paths
                         else "--files-from ${filesFromTmpFile}";
-          pruneCmd = optional (builtins.length backup.pruneOpts > 0) [
+          pruneCmd = optionals (builtins.length backup.pruneOpts > 0) [
             ( resticCmd + " forget --prune " + (concatStringsSep " " backup.pruneOpts) )
             ( resticCmd + " check" )
           ];