mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-18 17:09:41 +01:00
6406b7ae3f
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
29 lines
581 B
Nix
29 lines
581 B
Nix
{ 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
|
|
'';
|
|
};
|
|
}
|