From ed55524562e14131250b8362f47ccfe2d6e5a328 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 22 Jun 2023 17:28:44 +0300 Subject: [PATCH] nixos/malloc: add back maybe unnecessary line --- nixos/modules/config/malloc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix index 043f78c8214..3d70e091983 100644 --- a/nixos/modules/config/malloc.nix +++ b/nixos/modules/config/malloc.nix @@ -97,6 +97,7 @@ in }; config = mkIf (cfg.provider != "libc") { + boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576); # TODO: Default vm.max_map_count has been increased system-wide environment.etc."ld-nix.so.preload".text = '' ${providerLibPath} '';