diff options
author | Alan Pearce | 2020-11-16 15:40:06 +0100 |
---|---|---|
committer | Alan Pearce | 2020-11-16 15:40:06 +0100 |
commit | 50cf34fec72ec98beeca2e61b2ba5cce92e81e0f (patch) | |
tree | fe8456e6956a858b521097cedce306660159478c /system | |
parent | aac8d856b6ae176b6d16af376c2f8c2b7eb088ef (diff) | |
download | nixfiles-50cf34fec72ec98beeca2e61b2ba5cce92e81e0f.tar.lz nixfiles-50cf34fec72ec98beeca2e61b2ba5cce92e81e0f.tar.zst nixfiles-50cf34fec72ec98beeca2e61b2ba5cce92e81e0f.zip |
prefect: enable local network postgres connections
Diffstat (limited to 'system')
-rw-r--r-- | system/prefect.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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"; |