Fix restic daily backups

This commit is contained in:
2024-10-06 18:35:00 -07:00
parent 0ebe8d1121
commit 75c76ef032

View File

@@ -1,11 +1,5 @@
{ pkgs, config, secrets, ... }: { pkgs, config, secrets, ... }:
{ {
environment.systemPackages = with pkgs; [
restic
libnotify
backblaze-b2
];
systemd.services = { systemd.services = {
notify-backup-b2-failed = { notify-backup-b2-failed = {
description = "Notify on failed backup to B2"; description = "Notify on failed backup to B2";
@@ -26,8 +20,8 @@
environment.etc = { environment.etc = {
"restic-env".text = '' "restic-env".text = ''
export B2_ACCOUNT_ID="${secrets.b2.accountId}" B2_ACCOUNT_ID="${secrets.b2.accountId}"
export B2_ACCOUNT_KEY="${secrets.b2.accountKey}" B2_ACCOUNT_KEY="${secrets.b2.accountKey}"
''; '';
"restic-password".text = secrets.restic.password; "restic-password".text = secrets.restic.password;
}; };