Fix restic daily backups
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user