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"; }