krebs hw: init x220.nix

This commit is contained in:
lassulus 2017-07-23 16:34:10 +02:00
parent 7b8e90f478
commit 648c7ef0ba

View File

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
with import <stockholm/lib>;
{
networking.wireless.enable = lib.mkDefault true;
hardware.enableRedistributableFirmware = true;
hardware.cpu.intel.updateMicrocode = true;
services.tlp.enable = true;
boot = {
kernelModules = [ "kvm-intel" "acpi_call" "tpm-rng" ];
extraModulePackages = [ config.boot.kernelPackages.tp_smapi ];
kernelParams = [ "acpi_backlight=none" ];
};
hardware.opengl.extraPackages = [
pkgs.vaapiIntel
pkgs.vaapiVdpau
];
security.rngd.enable = true;
services.xserver = {
videoDriver = "intel";
};
}