mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
hosts/plover: refactor Borgbackup job function
This commit is contained in:
parent
4190b4a481
commit
61b36cd901
@ -366,11 +366,13 @@ in
|
|||||||
};
|
};
|
||||||
extraCreateArgs =
|
extraCreateArgs =
|
||||||
let
|
let
|
||||||
args = [
|
args = lib.flatten [
|
||||||
(lib.concatStringsSep " "
|
(builtins.map
|
||||||
(builtins.map (patternFile: "--patterns-from ${lib.escapeShellArg patternFile}") patternFiles))
|
(patternFile: "--patterns-from ${lib.escapeShellArg patternFile}")
|
||||||
(lib.concatStringsSep " "
|
patternFiles)
|
||||||
(builtins.map (pattern: "--pattern ${lib.escapeShellArg pattern}") patterns))
|
(builtins.map
|
||||||
|
(pattern: "--pattern ${lib.escapeShellArg pattern}")
|
||||||
|
patterns)
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
lib.concatStringsSep " " args;
|
lib.concatStringsSep " " args;
|
||||||
|
Loading…
Reference in New Issue
Block a user