concat strings in restic-all
This commit is contained in:
parent
a436cdbc78
commit
9ff90d6251
|
@ -6,6 +6,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.lists) forEach;
|
||||
inherit (lib.strings) concatStringsSep;
|
||||
|
||||
inherit (config.services.secrets) secrets;
|
||||
backupSchedules = import "${self}/data/backupSchedules.nix";
|
||||
|
@ -14,13 +15,13 @@
|
|||
in {
|
||||
environment.systemPackages = [
|
||||
# TODO: add ones in container too
|
||||
(pkgs.writeShellScriptBin "restic-all" ''
|
||||
(concatStringsSep "\n" (pkgs.writeShellScriptBin "restic-all" ''
|
||||
${(forEach [
|
||||
"social"
|
||||
] (
|
||||
name: "restic-${name} $@"
|
||||
))}
|
||||
'')
|
||||
''))
|
||||
];
|
||||
|
||||
services.restic.backups = {
|
||||
|
|
Loading…
Reference in a new issue