system/nixos/shared/headless.nix

17 lines
423 B
Nix
Raw Normal View History

2024-03-29 17:14:53 +03:00
{ inputs, ... }:
{
imports = [
"${inputs.nixpkgs}/nixos/modules/profiles/headless.nix"
];
# Fix for GLIBC errors due to 'scudo' from hardened profile.
# https://github.com/NixOS/nix/issues/6563
2024-03-29 17:14:53 +03:00
environment.memoryAllocator.provider = "libc";
# Disabled by hardened profile, big performance hit.
security.allowSimultaneousMultithreading = true;
2024-03-29 17:14:53 +03:00
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
}