nixos/restic: escape settings in wrapper script

hotburger f6885105 e7cf3dc1

Changed files
+2 -2
nixos
modules
services
backup
+2 -2
nixos/modules/services/backup/restic.nix
···
# set same environment variables as the systemd service
${lib.pipe config.systemd.services."restic-backups-${name}".environment [
(lib.filterAttrs (n: v: v != null && n != "PATH"))
-
(lib.mapAttrsToList (n: v: "${n}=${v}"))
-
(lib.concatStringsSep "\n")
]}
PATH=${config.systemd.services."restic-backups-${name}".environment.PATH}:$PATH
···
# set same environment variables as the systemd service
${lib.pipe config.systemd.services."restic-backups-${name}".environment [
(lib.filterAttrs (n: v: v != null && n != "PATH"))
+
(lib.mapAttrs (_: v: "${v}"))
+
(lib.toShellVars)
]}
PATH=${config.systemd.services."restic-backups-${name}".environment.PATH}:$PATH