nixos/modules/homelab/postgres.nix
2025-12-12 04:30:57 +01:00

13 lines
240 B
Nix

{
config,
lib,
...
}:
lib.mkIf config.fireproof.homelab.enable {
services = {
restic.backups.homelab.paths = [config.services.postgresqlBackup.location];
postgresql.enable = true;
postgresqlBackup.enable = true;
};
}