Add Lenovo x140e laptop. (#17)

This commit is contained in:
Stephen Whitmore 2016-08-05 02:48:33 -07:00 committed by Emery Hemingway
parent 5b3c112a91
commit bc241aeec7
1 changed files with 26 additions and 0 deletions

26
lenovo/x140e.nix Normal file
View File

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
{
boot = {
# wireless
kernelModules = [ "kvm-amd" "wl" ];
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
# audio device
extraModprobeConfig = ''
options snd_hda_intel enable=0,1
'';
};
# video card
services.xserver.videoDrivers = ["ati"];
# trackpad (touchpad disabled)
hardware.trackpoint = {
enable = true;
emulateWheel = true;
};
# media keys
sound.enableMediaKeys = true;
}