summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CODEOWNERS1
-rw-r--r--README.org1
-rw-r--r--lenovo/thinkpad/x230/default.nix24
3 files changed, 26 insertions, 0 deletions
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 | ~<nixos-hardware/lenovo/thinkpad/t460s>~ |
| Lenovo ThinkPad X140e | ~<nixos-hardware/lenovo/thinkpad/x140e>~ |
| Lenovo ThinkPad X220 | ~<nixos-hardware/lenovo/thinkpad/x220>~ |
+| Lenovo ThinkPad X230 | ~<nixos-hardware/lenovo/thinkpad/x230>~ |
| Lenovo ThinkPad X250 | ~<nixos-hardware/lenovo/thinkpad/x250>~ |
| [[file:microsoft/surface-pro/3][Microsoft Surface Pro 3]] | ~<nixos-hardware/microsoft/surface-pro/3>~ |
| [[file:raspberry-pi/2][Raspberry Pi 2]] | ~<nixos-hardware/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
+ ];
+}