mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
13 lines
240 B
Nix
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;
|
|
};
|
|
}
|