falkenstein-1 -> falkenstein

This commit is contained in:
Rouven Seifert 2023-11-20 22:46:51 +01:00
parent 41d348b037
commit bad96e4197
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
19 changed files with 41 additions and 33 deletions

View file

@ -0,0 +1,30 @@
{ config, pkgs, ... }:
{
age.secrets."borg/passphrase" = {
file = ../../../../secrets/falkenstein/borg/passphrase.age;
};
environment.systemPackages = [ pkgs.borgbackup ];
services.borgmatic = {
enable = true;
settings = {
source_directories = [
"/var/lib"
"/var/log"
"/root"
];
repositories = [
{
path = "ssh://root@192.168.42.2/mnt/backup/falkenstein";
label = "nuc";
}
];
encryption_passcommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets."borg/passphrase".path}";
compression = "lz4";
keep_daily = 7;
keep_weekly = 4;
keep_monthly = 12;
keep_yearly = 3;
};
};
}