Move hardware config files again

This commit is contained in:
SebastianStork 2024-08-24 00:15:58 +02:00
parent a87b591fa4
commit 90a5961845
10 changed files with 10 additions and 16 deletions

View file

@ -0,0 +1,28 @@
{ inputs, ... }:
{
imports = [ inputs.disko.nixosModules.default ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware = {
enableRedistributableFirmware = true;
cpu.amd.updateMicrocode = true;
};
boot = {
kernelModules = [ "kvm-amd" ];
initrd.kernelModules = [ "usb_storage" ];
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"sd_mod"
];
};
services = {
fstrim.enable = true;
fwupd.enable = true;
auto-cpufreq.enable = true;
};
}