mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
Add MSI GS60 2QE (#224)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
31f61b90dd
commit
6406b7ae3f
2 changed files with 31 additions and 0 deletions
29
msi/gs60/default.nix
Normal file
29
msi/gs60/default.nix
Normal file
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue