2020-12-28 20:38:20 -05:00
|
|
|
{ lib, pkgs, ... }: {
|
2021-10-03 08:13:49 -04:00
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/ssd
|
|
|
|
];
|
2021-11-24 18:42:19 -05:00
|
|
|
|
2020-11-14 13:13:48 -05:00
|
|
|
|
2020-12-05 10:56:31 -05:00
|
|
|
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
|
2021-02-26 05:41:03 -05:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
2020-11-14 12:27:04 -05:00
|
|
|
|
2021-11-24 18:42:19 -05:00
|
|
|
# Requires at least 5.12 for working wi-fi and bluetooth.
|
2021-08-18 11:53:34 -04:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
|
2020-12-05 12:38:14 -05:00
|
|
|
|
2020-11-14 12:54:25 -05:00
|
|
|
# Touchpad goes over i2c.
|
|
|
|
# Without this we get errors in dmesg on boot and hangs when shutting down.
|
|
|
|
boot.blacklistedKernelModules = [ "psmouse" ];
|
|
|
|
|
2020-11-14 12:27:04 -05:00
|
|
|
# Allows for updating firmware via `fwupdmgr`.
|
2020-12-28 20:38:20 -05:00
|
|
|
services.fwupd.enable = true;
|
2020-11-14 11:14:41 -05:00
|
|
|
}
|