host: use libc provider for each host

This commit is contained in:
Dmitriy Pleshevskiy 2024-03-29 22:12:26 +03:00
parent 52f409c4ce
commit 063ade0bc8
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 3 additions and 3 deletions

View file

@ -5,9 +5,6 @@
"${inputs.nixpkgs}/nixos/modules/profiles/headless.nix" "${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. # Disabled by hardened profile, big performance hit.
security.allowSimultaneousMultithreading = true; security.allowSimultaneousMultithreading = true;

View file

@ -6,4 +6,7 @@
]; ];
boot.kernelPackages = pkgs.unstable.linuxPackages_6_6_hardened; 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";
} }