propagate system arch to hardware configuration

This commit is contained in:
Pim Kunis 2023-11-05 20:14:19 +01:00
parent 397d6ab765
commit a95ef6b212

View file

@ -2,6 +2,7 @@
config, config,
lib, lib,
modulesPath, modulesPath,
server,
... ...
}: { }: {
imports = [ imports = [
@ -29,6 +30,6 @@
networking.useDHCP = false; networking.useDHCP = false;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = server.system-arch;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }