Files
homelab/config/db-postgres.nix
2025-11-09 00:45:00 +01:00

19 lines
316 B
Nix

{
pkgs,
config,
tools,
...
}:
{
services.postgresql = {
enable = true;
enableTCPIP = true;
package = pkgs.postgresql_18;
authentication = ''
host all all ${tools.mask_cidr} md5
'';
checkConfig = true;
initialScript = config.age.secrets.db-postgres-initscript.path;
};
}