diff --git a/modules/periodic.nix b/modules/periodic.nix index c8a6210..20021d6 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -5,6 +5,14 @@ let blocklist = "${stateDir}/dnsmasq.blacklist.txt"; in { + # PostgreSQL daily backups + services.postgresqlBackup = { + enable = true; + backupAll = true; + location = "/vault/backups/zion/databases"; + startAt = "*-*-* 05:15:00"; + }; + # Fetch hosts-blocklists daily systemd.services.download-dns-blocklist = { description = "Download hosts-blocklists"; diff --git a/modules/webstack.nix b/modules/webstack.nix index e2aa3cd..012561f 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -158,14 +158,6 @@ ''; }; - # PostgreSQL daily backups - services.postgresqlBackup = { - enable = true; - backupAll = true; - location = "/vault/backups/zion/databases"; - startAt = "*-*-* 05:15:00"; - }; - # Miniflux configuration services.miniflux = { enable = true;