mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-07 22:20:33 +02:00
24 lines
442 B
Nix
24 lines
442 B
Nix
{ ... }:
|
|
{
|
|
services.borgmatic = {
|
|
enable = true;
|
|
configurations = {
|
|
storageBox = {
|
|
postgresql_databases = [
|
|
{ name = "nextcloud"; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
systemd.timers."borgmatic" = {
|
|
enable = true;
|
|
wantedBy = [ "timers.target" ];
|
|
timerConfig = {
|
|
OnCalendar = "*-*-* 03:00:00";
|
|
Persistent = true;
|
|
WakeSystem = true;
|
|
Unit = "borgmatic.service";
|
|
};
|
|
};
|
|
}
|