2019-10-30 20:15:22 +01:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
|
|
|
];
|
|
|
|
|
2019-12-28 10:50:04 +01:00
|
|
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
|
|
|
|
2020-06-23 21:11:11 +02:00
|
|
|
# older version break wifi:
|
|
|
|
# - https://github.com/NixOS/nixos-hardware/issues/173
|
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.6") pkgs.linuxPackages_latest;
|
|
|
|
|
2024-01-13 12:58:05 +01:00
|
|
|
# Cooling management
|
|
|
|
services.thermald.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
# Allows for updating firmware via `fwupdmgr`.
|
|
|
|
services.fwupd.enable = lib.mkDefault true;
|
2019-10-30 20:15:22 +01:00
|
|
|
}
|