mirror of
https://github.com/kmein/niveum
synced 2026-03-19 03:21:10 +01:00
feat(restic): backup home-assistant
This commit is contained in:
@@ -45,7 +45,7 @@ in {
|
|||||||
restic.file = ../../secrets/restic.age;
|
restic.file = ../../secrets/restic.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.moodle-dl = {
|
services.restic.backups.niveum = {
|
||||||
initialize = true;
|
initialize = true;
|
||||||
inherit (restic) repository;
|
inherit (restic) repository;
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
let
|
{config, ...}: let
|
||||||
port = 8123;
|
port = 8123;
|
||||||
|
inherit (import ../../lib) restic;
|
||||||
in {
|
in {
|
||||||
networking.firewall.allowedTCPPorts = [port];
|
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 = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
containers.homeassistant = {
|
containers.homeassistant = {
|
||||||
|
|||||||
Reference in New Issue
Block a user