idiosyn/nixos/module/mimalloc.nix

9 lines
231 B
Nix
Raw Normal View History

2024-08-18 13:47:18 +02:00
{ ... }: { config, lib, pkgs, ... }: {
environment.memoryAllocator.provider = "mimalloc";
2024-10-08 22:22:27 +02:00
environment.variables = {
MIMALLOC_PURGE_DELAY = 50;
MIMALLOC_PURGE_DECOMMITS = 0;
MIMALLOC_ALLOW_LARGE_OS_PAGES = 1;
};
2024-08-18 13:47:18 +02:00
}