host: enable simultaneous multithreading for headless

This commit is contained in:
Dmitriy Pleshevskiy 2024-03-29 17:34:11 +03:00
parent be7a2338ae
commit cbceaebee2
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -5,7 +5,11 @@
"${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;
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;