refactor: move homelab config to module

This commit is contained in:
Nickolaj Jepsen 2025-12-12 04:30:57 +01:00
parent 742a55e5a0
commit e03f3af01d
19 changed files with 123 additions and 62 deletions

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}:
lib.mkIf config.fireproof.homelab.enable {
services = {
restic.backups.homelab.paths = [config.services.postgresqlBackup.location];
postgresql.enable = true;
postgresqlBackup.enable = true;
};
}