summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-04-21 00:54:11 +0200
committerGitHub <noreply@github.com>2021-04-21 00:54:11 +0200
commit1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01 (patch)
tree2c406765233a7876cf52a8e32bf5742ea8e520ad /nixos
parentac507707f049b669db9f9836e334506b5a98e0d6 (diff)
parent03ea3ba1ed5583146a57a553b64deba59c570708 (diff)
downloadnixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.tar
nixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.tar.gz
nixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.tar.bz2
nixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.tar.lz
nixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.tar.xz
nixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.tar.zst
nixpkgs-1c4f6dd00e02df25edd46ea7e3bf33c8959fcd01.zip
Merge pull request #119929 from expipiplus1/patch-3
modules.matrix-appservice-irc: allow connecting to unix sockets
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/matrix-appservice-irc.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/matrix-appservice-irc.nix b/nixos/modules/services/misc/matrix-appservice-irc.nix
index 63dc313ad10..a0a5973d30f 100644
--- a/nixos/modules/services/misc/matrix-appservice-irc.nix
+++ b/nixos/modules/services/misc/matrix-appservice-irc.nix
@@ -214,7 +214,8 @@ in {
         PrivateMounts = true;
         SystemCallFilter = "~@aio @clock @cpu-emulation @debug @keyring @memlock @module @mount @obsolete @raw-io @setuid @swap";
         SystemCallArchitectures = "native";
-        RestrictAddressFamilies = "AF_INET AF_INET6";
+        # AF_UNIX is required to connect to a postgres socket.
+        RestrictAddressFamilies = "AF_UNIX AF_INET AF_INET6";
       };
     };