mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 13:59:24 -06:00
29 lines
376 B
Nix
Executable file
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
|
|
];
|
|
};
|
|
};
|
|
|
|
}
|