boron: optimise compilation for hardware
All checks were successful
flake / flake (push) Successful in 1m59s

This commit is contained in:
Jake Hillion 2024-11-04 00:20:00 +00:00
parent 5146d6cd6f
commit ef71263946

View File

@ -30,6 +30,14 @@
custom.defaults = true; custom.defaults = true;
## Hardware optimisations
nix.settings.system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" "gccarch-znver4" ];
nixpkgs.hostPlatform = {
gcc.arch = "znver4";
gcc.tune = "znver4";
system = builtins.readFile ./system;
};
## Kernel ## Kernel
### Explicitly use the latest kernel at time of writing because the LTS ### Explicitly use the latest kernel at time of writing because the LTS
### kernels available in NixOS do not seem to support this server's very ### kernels available in NixOS do not seem to support this server's very