moved hardware configuration software options to hardware.nix

This commit is contained in:
Leyla Becker 2024-09-20 21:28:53 -05:00
parent 834165443a
commit 2213d099d0
8 changed files with 85 additions and 62 deletions

View file

@ -4,9 +4,10 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../hardware-common.nix
];
boot = {
initrd = {
@ -41,5 +42,8 @@
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware = {
# TODO: hardware graphics
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}