From 6406b7ae3f08100ec2d512cb49835d987fd897be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan?= <307899+seqizz@users.noreply.github.com> Date: Sun, 21 Mar 2021 16:28:09 +0100 Subject: [PATCH] Add MSI GS60 2QE (#224) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jörg Thalheim --- README.md | 2 ++ msi/gs60/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 msi/gs60/default.nix diff --git a/README.md b/README.md index 9f20c02..a14c0a2 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ See code for all available configurations. | Lenovo ThinkPad X1 Extreme Gen 2 | `` | | [Microsoft Surface Range][] | `` | | [Microsoft Surface Pro 3][] | `` | +| [MSI GS60 2QE][] | `` | | PC Engines APU | `` | | [Raspberry Pi 2][] | `` | | [Samsung Series 9 NP900X3C][] | `` | @@ -164,6 +165,7 @@ See code for all available configurations. [Lenovo ThinkPad X13 Yoga]: lenovo/thinkpad/x13-yoga [Lenovo ThinkPad X260]: lenovo/thinkpad/x260 [Microsoft Surface Pro 3]: microsoft/surface-pro/3 +[MSI GS60 2QE]: msi/gs60 [Raspberry Pi 2]: raspberry-pi/2 [Samsung Series 9 NP900X3C]: samsung/np900x3c [Purism Librem 13v3]: purism/librem/13v3 diff --git a/msi/gs60/default.nix b/msi/gs60/default.nix new file mode 100644 index 0000000..bd1db27 --- /dev/null +++ b/msi/gs60/default.nix @@ -0,0 +1,29 @@ +{ config, pkgs, lib, ... }: +{ + imports = [ + ../../common/cpu/intel + ../../common/pc/laptop + ]; + + boot = { + + # Interferes with Fn- action keys + kernelParams = [ "video.report_key_events=0" ]; + + # Workaround for problematic firmware loading + extraModprobeConfig = '' + options ath10k_core skip_otp=y + ''; + + }; + + # Laptop can't correctly suspend if wlan is active + powerManagement = { + powerDownCommands = '' + ${pkgs.utillinux}/bin/rfkill block wlan + ''; + resumeCommands = '' + ${pkgs.utillinux}/bin/rfkill unblock wlan + ''; + }; +}