mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Configure backups for uptime-kuma
This commit is contained in:
parent
e0799f2b11
commit
298e2a51b2
4 changed files with 19 additions and 2 deletions
12
modules/system/services/uptime-kuma/backups.nix
Normal file
12
modules/system/services/uptime-kuma/backups.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.custom.services.uptimeKuma.backups.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.services.uptimeKuma.backups.enable {
|
||||
custom.services.resticBackups.uptime-kuma = {
|
||||
healthchecks.enable = false;
|
||||
dependentService = "uptime-kuma.service";
|
||||
extraConfig.paths = [ "/var/lib/private/uptime-kuma" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue