mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-16 22:11:13 +01:00
Port of linux-surface/linux-surface Kernel patches to NixOS (#221)
This commit is contained in:
parent
874830945a
commit
a0d8383c42
9 changed files with 286 additions and 0 deletions
18
microsoft/surface/hardware_configuration.nix
Normal file
18
microsoft/surface/hardware_configuration.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ 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
|
||||
options ath10k_core skip_otp=Y
|
||||
'';
|
||||
|
||||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue