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

feat(restic): backup moodle-dl

This commit is contained in:
2022-01-19 09:38:36 +01:00
parent 6f06f0c9ef
commit 0dc1e167fd

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }:
let
inherit (import <niveum/lib>) retiolumAddresses;
inherit (import <niveum/lib>) retiolumAddresses restic;
in
{
imports = [
@@ -26,6 +26,16 @@ in
<niveum/modules/retiolum.nix>
];
services.restic.backups.moodle-dl = {
initialize = true;
inherit (restic) repository;
timerConfig = { OnCalendar = "daily"; RandomizedDelaySec = "5h"; };
passwordFile = toString <secrets/restic/password>;
paths = [
"/var/lib/moodle-dl"
];
};
nix.nixPath = [ "/var/src" ];
services.logind = {