diff --git a/CODEOWNERS b/CODEOWNERS index 436b947..144f5ee 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1,2 @@ lenovo/thinkpad/x250 @Mic92 +lenovo/thinkpad/x230 @makefu diff --git a/README.org b/README.org index ae73110..358daaa 100644 --- a/README.org +++ b/README.org @@ -32,6 +32,7 @@ should look like: | Lenovo ThinkPad T460s | ~~ | | Lenovo ThinkPad X140e | ~~ | | Lenovo ThinkPad X220 | ~~ | +| Lenovo ThinkPad X230 | ~~ | | Lenovo ThinkPad X250 | ~~ | | [[file:microsoft/surface-pro/3][Microsoft Surface Pro 3]] | ~~ | | [[file:raspberry-pi/2][Raspberry Pi 2]] | ~~ | 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 + ]; +}