system: enable tmpfsHugeMemoryPages as advisable

this might improve tmpfs performance, and reduce cpu usage.
origin: https://github.com/NixOS/nixpkgs/pull/404514
This commit is contained in:
Elec3137 2026-02-20 20:13:40 -08:00
commit 7a9bcd3dfc

View file

@ -61,6 +61,7 @@ in
boot.tmp = lib.mkDefault { boot.tmp = lib.mkDefault {
useTmpfs = true; useTmpfs = true;
tmpfsSize = "70%"; tmpfsSize = "70%";
tmpfsHugeMemoryPages = "within_size";
}; };
# run fstrim monthly instead of weekly # run fstrim monthly instead of weekly