about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-09-21 20:06:35 +0200
committerGitHub <noreply@github.com>2021-09-21 20:06:35 +0200
commit41e2ef10128421544c03c8bfeebf9dcf0f83ed6f (patch)
tree63ab914c2e7d9b222e783067b9b20ab70f9e8d54 /nixos
parent1c8f5e5f73eb04eff460558d03bc2cfcf9c0bce5 (diff)
parent5437b17b8ec41dbac81644744454836cae1ef0bf (diff)
downloadnixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.tar
nixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.tar.gz
nixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.tar.bz2
nixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.tar.lz
nixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.tar.xz
nixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.tar.zst
nixlib-41e2ef10128421544c03c8bfeebf9dcf0f83ed6f.zip
Merge pull request #138731 from illdefined/feature/memoryallocator-mimalloc
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/config/malloc.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix
index fc35993b5a81..f2e28a167ef2 100644
--- a/nixos/modules/config/malloc.nix
+++ b/nixos/modules/config/malloc.nix
@@ -30,6 +30,15 @@ let
         vulnerabilities, while maintaining good performance.
       '';
     };
+
+    mimalloc = {
+      libPath = "${pkgs.mimalloc}/lib/libmimalloc.so";
+      description = ''
+        A compact and fast general purpose allocator, which may
+        optionally be built with mitigations against various heap
+        vulnerabilities.
+      '';
+    };
   };
 
   providerConf = providers.${cfg.provider};