2023-01-10 14:06:33 +01:00
|
|
|
{ lib, ... }:
|
2023-01-10 05:17:07 +01:00
|
|
|
|
2023-01-10 22:57:10 +01:00
|
|
|
# This module is intended to support the Surface Go range of devices.
|
|
|
|
# The current version of this targets the Go 1, and other versions of the device may need further
|
|
|
|
# config changes to work well.
|
|
|
|
|
2023-01-10 05:17:07 +01:00
|
|
|
let
|
2023-01-10 14:06:33 +01:00
|
|
|
inherit (lib) mkDefault;
|
2023-01-10 05:17:07 +01:00
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../common
|
|
|
|
./firmware/ath10k
|
2023-01-10 14:24:06 +01:00
|
|
|
../../../common/pc
|
|
|
|
../../../common/pc/ssd
|
2023-01-10 22:57:10 +01:00
|
|
|
# The Intel CPU module auto-includes Intel's GPU:
|
2023-01-10 14:24:06 +01:00
|
|
|
../../../common/cpu/intel
|
|
|
|
../../../common/cpu/intel/kaby-lake
|
|
|
|
];
|
|
|
|
|
2023-01-19 01:54:46 +01:00
|
|
|
microsoft-surface.kernelVersion = "6.1.6";
|
|
|
|
|
2023-01-10 14:24:06 +01:00
|
|
|
boot.kernelParams = [
|
|
|
|
"i915.enable_rc6=1"
|
|
|
|
"i915.modeset=1"
|
2023-01-10 05:17:07 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.extraModprobeConfig = mkDefault ''
|
|
|
|
options snd_hda_intel power_save=1
|
|
|
|
options snd_ac97_codec power_save=1
|
|
|
|
options iwlwifi power_save=Y
|
|
|
|
options iwldvm force_cam=N
|
|
|
|
'';
|
|
|
|
}
|