summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
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";