services/archivebox: escape extraArgs properly

This commit is contained in:
Gabriel Arazas 2023-11-08 21:09:05 +08:00
parent a62ae7b75c
commit 2be753489e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -54,7 +54,7 @@ let
path = [ cfg.package ] ++ cfg.extraPackages;
script = ''
echo "${lib.concatStringsSep "\n" value.urls}" \
| archivebox add ${lib.concatStringsSep " " value.extraArgs}
| archivebox add ${lib.escapeShellArgs value.extraArgs}
'';
serviceConfig = {
User = "archivebox";
@ -131,7 +131,7 @@ in
"https://arxiv.org/rss/cs"
"https://distill.pub/"
];
extraArgs = [ "--depth 1" ];
extraArgs = [ "--depth" "1" ];
startAt = "daily";
};
};