2021-03-21 15:28:09 +00:00
|
|
|
{ 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 = ''
|
2022-09-27 23:57:22 +00:00
|
|
|
${pkgs.util-linux}/bin/rfkill block wlan
|
2021-03-21 15:28:09 +00:00
|
|
|
'';
|
|
|
|
resumeCommands = ''
|
2022-09-27 23:57:22 +00:00
|
|
|
${pkgs.util-linux}/bin/rfkill unblock wlan
|
2021-03-21 15:28:09 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|