1
0
Fork 0
dotfiles/system/nixos/postgresql.nix

24 lines
425 B
Nix
Raw Normal View History

{ pkgs, ... }:
{
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
enableTCPIP = true;
settings = {
full_page_writes = "off";
wal_init_zero = "off";
wal_recycle = "off";
};
authentication = ''
2023-08-20 23:08:23 +00:00
host all all 100.66.42.98/32 md5
host all all 10.88.0.0/16 md5
'';
};
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ 5432 ];
}