19 lines
316 B
Nix
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;
|
|
};
|
|
}
|