2024-10-13 14:22:59 -04:00
|
|
|
{
|
2024-10-13 16:51:47 -04:00
|
|
|
config,
|
2024-10-13 14:22:59 -04:00
|
|
|
lib,
|
2024-10-13 15:51:19 -04:00
|
|
|
pkgs,
|
2024-10-13 14:22:59 -04:00
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
self.nixosModules.hw-common-amd-cpu
|
|
|
|
self.nixosModules.hw-common-amd-gpu
|
|
|
|
self.nixosModules.hw-common-bluetooth
|
|
|
|
self.nixosModules.hw-common-ssd
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
2024-10-13 18:11:33 -04:00
|
|
|
initrd = {
|
|
|
|
availableKernelModules = ["nvme" "sdhci_pci" "thunderbolt" "usb_storage" "usbhid" "xhci_pci"];
|
|
|
|
kernelModules = ["amdgpu"];
|
|
|
|
};
|
|
|
|
|
2024-10-13 16:51:47 -04:00
|
|
|
extraModulePackages = with config.boot.kernelPackages; [acpi_call];
|
2024-10-13 14:22:59 -04:00
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
enableAllFirmware = true;
|
|
|
|
sensor.iio.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-10-13 17:22:02 -04:00
|
|
|
services.upower.enable = true;
|
2024-10-13 14:22:59 -04:00
|
|
|
}
|