mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
28 lines
518 B
Nix
28 lines
518 B
Nix
{ 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;
|
|
};
|
|
}
|