Fix restic daily backups
This commit is contained in:
parent
0ebe8d1121
commit
75c76ef032
1 changed files with 2 additions and 8 deletions
|
|
@ -1,11 +1,5 @@
|
|||
{ pkgs, config, secrets, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
restic
|
||||
libnotify
|
||||
backblaze-b2
|
||||
];
|
||||
|
||||
systemd.services = {
|
||||
notify-backup-b2-failed = {
|
||||
description = "Notify on failed backup to B2";
|
||||
|
|
@ -26,8 +20,8 @@
|
|||
|
||||
environment.etc = {
|
||||
"restic-env".text = ''
|
||||
export B2_ACCOUNT_ID="${secrets.b2.accountId}"
|
||||
export B2_ACCOUNT_KEY="${secrets.b2.accountKey}"
|
||||
B2_ACCOUNT_ID="${secrets.b2.accountId}"
|
||||
B2_ACCOUNT_KEY="${secrets.b2.accountKey}"
|
||||
'';
|
||||
"restic-password".text = secrets.restic.password;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue