system/nixos/shared/kernel.nix

13 lines
340 B
Nix
Raw Normal View History

2024-03-29 17:14:53 +03:00
{ inputs, pkgs, ... }:
{
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/profiles/hardened.nix"
];
boot.kernelPackages = pkgs.unstable.linuxPackages_6_6_hardened;
2024-03-29 22:12:26 +03:00
# Fix for GLIBC errors due to 'scudo' from hardened profile.
# https://github.com/NixOS/nix/issues/6563
environment.memoryAllocator.provider = "libc";
2024-03-29 17:14:53 +03:00
}