hosts/plover: refactor Borgbackup job function

This commit is contained in:
Gabriel Arazas 2022-12-12 14:19:55 +08:00
parent 4190b4a481
commit 61b36cd901

View File

@ -366,11 +366,13 @@ in
};
extraCreateArgs =
let
args = [
(lib.concatStringsSep " "
(builtins.map (patternFile: "--patterns-from ${lib.escapeShellArg patternFile}") patternFiles))
(lib.concatStringsSep " "
(builtins.map (pattern: "--pattern ${lib.escapeShellArg pattern}") patterns))
args = lib.flatten [
(builtins.map
(patternFile: "--patterns-from ${lib.escapeShellArg patternFile}")
patternFiles)
(builtins.map
(pattern: "--pattern ${lib.escapeShellArg pattern}")
patterns)
];
in
lib.concatStringsSep " " args;