1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 14:59:43 +01:00
nixos-hardware/msi/gs60/default.nix

30 lines
570 B
Nix
Raw Normal View History

2022-12-31 11:52:38 +01:00
{ pkgs, ... }:
{
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 = ''
2022-09-28 01:57:22 +02:00
${pkgs.util-linux}/bin/rfkill block wlan
'';
resumeCommands = ''
2022-09-28 01:57:22 +02:00
${pkgs.util-linux}/bin/rfkill unblock wlan
'';
};
}