nixos/solitary: Pre‐allocate a single hugepage

This commit is contained in:
Mikael 2024-10-11 12:21:35 +02:00
parent d5e69efdbb
commit 4d9d033d4c
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -36,6 +36,10 @@ in {
device = "/dev/vda";
};
boot.kernelParams = [
"hugepagesz=1G" "hugepages=1"
];
boot.kernelPackages = let
inherit (self.packages.x86_64-linux) linux-hardened;
in pkgs.linuxPackagesFor (linux-hardened.override {