surface: Add options from nixos-hardware

This commit is contained in:
PapaTutuWawa 2021-09-05 00:27:42 +02:00
parent fe26b59f5e
commit e93bb344a8
2 changed files with 12 additions and 2 deletions

View File

@ -37,9 +37,13 @@ in mkHost config {
networking.wireless.enable = true;
hardware.video.hidpi.enable = true;
boot = {
kernelParams = [ "mem_sleep_default=deep" ];
extraModprobeConfig = ''
options kvm_amd nested=1
options vfio-pci ids=1002:67df,1002:aaf0
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
'';
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" ];

View File

@ -110,6 +110,12 @@ in {
SURFACE_PRO3_BUTTON m
SURFACE_GPE m
SURFACE_BOOK1_DGPU_SWITCH m
#
# Other
#
PINCTRL_INTEL y
PINCTRL_SUNRISEPOINT y
'';
}
];