1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(restic): backup home-assistant

This commit is contained in:
2023-07-12 12:28:45 +02:00
parent 6c2db1b0fb
commit 99be0277b1
2 changed files with 16 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ in {
restic.file = ../../secrets/restic.age;
};
services.restic.backups.moodle-dl = {
services.restic.backups.niveum = {
initialize = true;
inherit (restic) repository;
timerConfig = {

View File

@@ -1,5 +1,6 @@
let
{config, ...}: let
port = 8123;
inherit (import ../../lib) restic;
in {
networking.firewall.allowedTCPPorts = [port];
@@ -9,6 +10,19 @@ in {
};
};
services.restic.backups.niveum = {
initialize = true;
inherit (restic) repository;
timerConfig = {
OnCalendar = "daily";
RandomizedDelaySec = "1h";
};
passwordFile = config.age.secrets.restic.path;
paths = [
"/var/lib/containers/storage/volumes/home-assistant.bak/_data/backups"
];
};
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {