From 50cf34fec72ec98beeca2e61b2ba5cce92e81e0f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 16 Nov 2020 15:40:06 +0100 Subject: prefect: enable local network postgres connections --- system/prefect.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'system') diff --git a/system/prefect.nix b/system/prefect.nix index 833d9211..b63c6071 100644 --- a/system/prefect.nix +++ b/system/prefect.nix @@ -50,6 +50,14 @@ services.xserver = { xautolock.enable = pkgs.lib.mkForce false; }; + services.postgresql = { + enableTCPIP = true; + authentication = '' + # TYPE DATABASE USER ADDRESS METHOD + host all all samenet md5 + ''; + }; + networking.firewall.allowedTCPPorts = [ config.services.postgresql.port ]; powerManagement.enable = false; powerManagement.cpuFreqGovernor = "performance"; -- cgit 1.4.1