From e93bb344a884b8b75dc4a6e089644dee0cbb40ab Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 5 Sep 2021 00:27:42 +0200 Subject: [PATCH] surface: Add options from nixos-hardware --- hosts/mashu.nix | 8 ++++++-- modules/hardware/surface-pro6.nix | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hosts/mashu.nix b/hosts/mashu.nix index e6ae33a..31cb8cb 100644 --- a/hosts/mashu.nix +++ b/hosts/mashu.nix @@ -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" ]; diff --git a/modules/hardware/surface-pro6.nix b/modules/hardware/surface-pro6.nix index f8e9e80..931ec29 100644 --- a/modules/hardware/surface-pro6.nix +++ b/modules/hardware/surface-pro6.nix @@ -110,6 +110,12 @@ in { SURFACE_PRO3_BUTTON m SURFACE_GPE m SURFACE_BOOK1_DGPU_SWITCH m + + # + # Other + # + PINCTRL_INTEL y + PINCTRL_SUNRISEPOINT y ''; } ];