1
0
Fork 0
dotfiles/system/nixos/postgresql.nix
Daniel Kempkens df3af9e17a
All checks were successful
Build / build-amd64-linux (push) Successful in 1h15m6s
Build / build-arm64-linux (push) Successful in 1h49m42s
postgres: Update TS address
2023-09-28 22:46:48 +02:00

24 lines
424 B
Nix

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