add restic-all
This commit is contained in:
parent
644ff711db
commit
a436cdbc78
|
@ -1,14 +1,28 @@
|
|||
{
|
||||
self,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.lists) forEach;
|
||||
|
||||
inherit (config.services.secrets) secrets;
|
||||
backupSchedules = import "${self}/data/backupSchedules.nix";
|
||||
|
||||
repoRoot = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Backups/Restic";
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
# TODO: add ones in container too
|
||||
(pkgs.writeShellScriptBin "restic-all" ''
|
||||
${(forEach [
|
||||
"social"
|
||||
] (
|
||||
name: "restic-${name} $@"
|
||||
))}
|
||||
'')
|
||||
];
|
||||
|
||||
services.restic.backups = {
|
||||
social = {
|
||||
user = "root";
|
||||
|
|
Loading…
Reference in a new issue