From 33a0194ae7337f7d56dbfa590336f58f6fa168ac Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Sun, 19 May 2024 00:03:30 +0100 Subject: [PATCH] boron: add firmware and optimise compilation for hardware --- hosts/boron.cx.ts.hillion.co.uk/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/boron.cx.ts.hillion.co.uk/default.nix b/hosts/boron.cx.ts.hillion.co.uk/default.nix index 8da6e2c..cf4e124 100644 --- a/hosts/boron.cx.ts.hillion.co.uk/default.nix +++ b/hosts/boron.cx.ts.hillion.co.uk/default.nix @@ -30,6 +30,16 @@ custom.defaults = true; + ## Hardware optimisations + hardware.enableAllFirmware = true; + + 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 ### 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