From 063ade0bc81bad1301dbc0339b553bbc0237cc5d Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 29 Mar 2024 22:12:26 +0300 Subject: [PATCH] host: use libc provider for each host --- nixos/shared/headless.nix | 3 --- nixos/shared/kernel.nix | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/shared/headless.nix b/nixos/shared/headless.nix index 737c34c..a5e2d1c 100644 --- a/nixos/shared/headless.nix +++ b/nixos/shared/headless.nix @@ -5,9 +5,6 @@ "${inputs.nixpkgs}/nixos/modules/profiles/headless.nix" ]; - # Fix for GLIBC errors due to 'scudo' from hardened profile. - # https://github.com/NixOS/nix/issues/6563 - environment.memoryAllocator.provider = "libc"; # Disabled by hardened profile, big performance hit. security.allowSimultaneousMultithreading = true; diff --git a/nixos/shared/kernel.nix b/nixos/shared/kernel.nix index 2dab4d2..fcb4d84 100644 --- a/nixos/shared/kernel.nix +++ b/nixos/shared/kernel.nix @@ -6,4 +6,7 @@ ]; boot.kernelPackages = pkgs.unstable.linuxPackages_6_6_hardened; + # Fix for GLIBC errors due to 'scudo' from hardened profile. + # https://github.com/NixOS/nix/issues/6563 + environment.memoryAllocator.provider = "libc"; }