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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user