0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/restic: escape settings in wrapper script

This commit is contained in:
hotburger 2025-03-31 13:13:48 -07:00
parent e7cf3dc1ee
commit f6885105e9
No known key found for this signature in database

View file

@ -465,8 +465,8 @@ in
# set same environment variables as the systemd service # set same environment variables as the systemd service
${lib.pipe config.systemd.services."restic-backups-${name}".environment [ ${lib.pipe config.systemd.services."restic-backups-${name}".environment [
(lib.filterAttrs (n: v: v != null && n != "PATH")) (lib.filterAttrs (n: v: v != null && n != "PATH"))
(lib.mapAttrsToList (n: v: "${n}=${v}")) (lib.mapAttrs (_: v: "${v}"))
(lib.concatStringsSep "\n") (lib.toShellVars)
]} ]}
PATH=${config.systemd.services."restic-backups-${name}".environment.PATH}:$PATH PATH=${config.systemd.services."restic-backups-${name}".environment.PATH}:$PATH