dotfiles/modules/nixos/services/postgresql/postgresEris/default.nix
2025-11-01 03:23:43 -05:00

29 lines
376 B
Nix
Executable file

{
flake,
...
}:
let
inherit (flake.config.services) instances;
service = instances.postgresql;
in
{
services = {
postgresqlBackup = {
enable = true;
startAt = "*-*-* 07:00:00";
};
postgresql = {
enable = true;
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}