From 1cb3a1c2d791ec8bbae4ab18fdc9167280554bd2 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 26 Dec 2017 22:54:10 +0100 Subject: [PATCH] thinkpad/x230: init --- lenovo/thinkpad/x230/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lenovo/thinkpad/x230/default.nix diff --git a/lenovo/thinkpad/x230/default.nix b/lenovo/thinkpad/x230/default.nix new file mode 100644 index 0000000..daeda9e --- /dev/null +++ b/lenovo/thinkpad/x230/default.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; { + imports = [ + ../. + ../../../common/cpu/intel + ]; + + boot = { + kernelModules = [ + "acpi_call" + "tpm-rng" + ]; + extraModulePackages = with config.boot.kernelPackages; [ + acpi_call + ]; + }; + + hardware.opengl.extraPackages = with pkgs; [ + vaapiIntel + vaapiVdpau + libvdpau-va-gl + ]; +}