summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2020-11-16 15:40:06 +0100
committerAlan Pearce2020-11-16 15:40:06 +0100
commit50cf34fec72ec98beeca2e61b2ba5cce92e81e0f (patch)
treefe8456e6956a858b521097cedce306660159478c /system
parentaac8d856b6ae176b6d16af376c2f8c2b7eb088ef (diff)
downloadnixfiles-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.nix8
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";