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