From a21e4fa9e0773cdb937a492a60a3207eb231f0cc Mon Sep 17 00:00:00 2001 From: Ilya Epifanov Date: Fri, 20 Dec 2024 22:05:47 +0100 Subject: [PATCH] restic: fixed handling of arguments with spaces in restic wrappers --- nixos/modules/services/backup/restic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix index 0fb601cce5892..e4ca2740f8e17 100644 --- a/nixos/modules/services/backup/restic.nix +++ b/nixos/modules/services/backup/restic.nix @@ -412,7 +412,7 @@ in ]} PATH=${config.systemd.services."restic-backups-${name}".environment.PATH}:$PATH - exec ${resticCmd} $@ + exec ${resticCmd} "$@" '') (lib.filterAttrs (_: v: v.createWrapper) config.services.restic.backups); }; }