mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-25 02:59:45 +01:00
9fef72a2af
- This device supports firmware updates through `fwupd`. - Prefer deep sleep over s2idle which is inefficient. - Remove old cruft in the corresponding readme.
24 lines
576 B
Nix
24 lines
576 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../../common/cpu/intel
|
|
../../../common/pc/laptop
|
|
../../../common/pc/ssd
|
|
];
|
|
|
|
# Force S3 sleep mode. See README.wiki for details.
|
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
|
|
|
# Earlier font-size setup
|
|
console.earlySetup = true;
|
|
|
|
# Prevent small EFI partiion from filling up
|
|
boot.loader.grub.configurationLimit = 10;
|
|
|
|
# Enable firmware updates via `fwupdmgr`.
|
|
services.fwupd.enable = lib.mkDefault true;
|
|
|
|
# This will save you money and possibly your life!
|
|
services.thermald.enable = lib.mkDefault true;
|
|
}
|