mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
18 lines
479 B
Nix
18 lines
479 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
{
|
||
|
boot.extraModprobeConfig = lib.mkDefault ''
|
||
|
options i915 enable_fbc=1 enable_rc6=1 modeset=1
|
||
|
options snd_hda_intel power_save=1
|
||
|
options snd_ac97_codec power_save=1
|
||
|
options iwlwifi power_save=Y
|
||
|
options iwldvm force_cam=N
|
||
|
'';
|
||
|
|
||
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||
|
|
||
|
# NOTE: Check the README before enabling TLP:
|
||
|
services.tlp.enable = lib.mkDefault false;
|
||
|
|
||
|
hardware.sensor.iio.enable = lib.mkDefault true;
|
||
|
}
|