nixos-configs/hosts/mpl/hardware.nix

30 lines
734 B
Nix
Raw Normal View History

2024-12-27 16:44:03 -06:00
{
config,
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
2024-12-31 00:30:26 -06:00
(modulesPath + "/profiles/qemu-guest.nix") # TODO: remove for actual install
2024-12-27 16:44:03 -06:00
];
boot = {
initrd = {
availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
kernelModules = [];
};
kernelModules = ["kvm-amd"];
extraModulePackages = [];
2024-12-31 00:15:18 -06:00
supportedFilesystems = ["ext4" "btrfs"];
2024-12-27 16:44:03 -06:00
};
hardware.enableAllFirmware = true;
# let networkmanager handle it
networking.useDHCP = lib.mkDefault false;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}