about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-10-20T18·22+0200
committerVincent Ambo <tazjin@gmail.com>2017-10-20T19·47+0200
commit19f165484b51326d2ec670f07979af35cb82e347 (patch)
tree061ceee934bbe7a23c6fa52f44433a29d5b15ceb
parent2d80f468d0e1571a8152af9c3835698281b1bf2f (diff)
feat(adho): Configure larger local POSIX queue sizes
Required for some testing at work.
-rw-r--r--adho-configuration.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/adho-configuration.nix b/adho-configuration.nix
index 5374f62fd6a0..a9328925ab6a 100644
--- a/adho-configuration.nix
+++ b/adho-configuration.nix
@@ -28,4 +28,10 @@
   };
 
   hardware.bluetooth.enable = true;
+
+  # Configure POSIX queue limits (for work)
+  systemd.tmpfiles.rules = let mqueue = "/proc/sys/fs/mqueue"; in [
+    "w ${mqueue}/msgsize_max - - - - ${toString (64 * 1024)}"
+    "w ${mqueue}/msg_max     - - - - 50"
+  ];
 }