From 7d0967779232668a63797ebb1958989f8f5b2dc6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 9 Aug 2021 19:55:45 +0200 Subject: [PATCH] modules: services: backup: fix exclude files I was using the wrong option... Somehow it didn't error out. --- modules/services/backup.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/backup.nix b/modules/services/backup.nix index da45b5e..8462289 100644 --- a/modules/services/backup.nix +++ b/modules/services/backup.nix @@ -92,9 +92,9 @@ in services.restic.backups.backblaze = { # Take care of included and excluded files paths = cfg.paths; - extraOptions = with builtins; with lib;[ - (optionalString ((length cfg.exclude) != 0) excludeArg) - ]; + extraBackupArgs = [ ] + ++ lib.optional (builtins.length cfg.exclude != 0) excludeArg + ; # Take care of creating the repository if it doesn't exist initialize = true; # Hijack S3-related env to give B2 API key