Move CPU optimizations into their own role.

This is remove duplication between the individual hosts folders.
This commit is contained in:
Tom Alexander
2025-05-12 19:06:04 -04:00
parent 554a6aff65
commit 96a96a0bc4
12 changed files with 237 additions and 436 deletions

View File

@@ -36,9 +36,24 @@
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
me.optimizations.enable = true;
me.secureBoot.enable = false;
me.optimizations = {
enable = true;
arch = "znver4";
system_features = [
"gccarch-znver4"
"gccarch-skylake"
# "gccarch-alderlake" missing WAITPKG
"gccarch-x86-64-v3"
"gccarch-x86-64-v4"
"benchmark"
"big-parallel"
"kvm"
"nixos-test"
];
};
# Mount tmpfs at /tmp
boot.tmp.useTmpfs = true;