mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/plover: refactor Borgbackup job function
This commit is contained in:
parent
4190b4a481
commit
61b36cd901
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user