mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
nixos/blocky: allow socket db connection (#492411)
This commit is contained in:
commit
71331ce7ac
1 changed files with 13 additions and 4 deletions
|
|
@ -64,10 +64,19 @@ in
|
|||
ProtectKernelTunables = true;
|
||||
ProtectSystem = "strict";
|
||||
Restart = "on-failure";
|
||||
RestrictAddressFamilies = [
|
||||
"AF_INET"
|
||||
"AF_INET6"
|
||||
];
|
||||
RestrictAddressFamilies =
|
||||
let
|
||||
logType = lib.attrByPath [ "settings" "queryLog" "type" ] "" cfg;
|
||||
in
|
||||
(lib.optional (lib.elem logType [
|
||||
"mysql"
|
||||
"postgresql"
|
||||
"timescale"
|
||||
]) "AF_UNIX")
|
||||
++ [
|
||||
"AF_INET"
|
||||
"AF_INET6"
|
||||
];
|
||||
RestrictNamespaces = true;
|
||||
RestrictRealtime = true;
|
||||
RuntimeDirectory = "blocky";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue