Unverified Commit 71331ce7 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

nixos/blocky: allow socket db connection (#492411)

parents e33c2abd a142420c
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -64,7 +64,16 @@ in
        ProtectKernelTunables = true;
        ProtectSystem = "strict";
        Restart = "on-failure";
        RestrictAddressFamilies = [
        RestrictAddressFamilies =
          let
            logType = lib.attrByPath [ "settings" "queryLog" "type" ] "" cfg;
          in
          (lib.optional (lib.elem logType [
            "mysql"
            "postgresql"
            "timescale"
          ]) "AF_UNIX")
          ++ [
            "AF_INET"
            "AF_INET6"
          ];