Commit a76bd96e authored by enc0urage's avatar enc0urage
Browse files

nixos/malloc: set vm.max_map_count when using graphene-hardened

parent 4361baa7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ in
  };

  config = mkIf (cfg.provider != "libc") {
    boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576);
    environment.etc."ld-nix.so.preload".text = ''
      ${providerLibPath}
    '';