blob: 78d76cd154dbf0165589c8a34c152d04612f3a00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ pkgs, ... }: {
networking.firewall.allowedTCPPorts = [ 5432 ];
services.postgresql = {
enable = true;
package = pkgs.postgresql_15_jit;
enableTCPIP = true;
enableJIT = true;
settings = { password_encryption = "scram-sha-256"; };
authentication = ''
# TYPE DATABASE USER ADDRESS METHOD
local all postgres peer
host all postgres all reject
host all all all scram-sha-256
'';
}; # end of services.postgreslq
}
|