From 771087ca8876e84204dc364081100eed46dd6f76 Mon Sep 17 00:00:00 2001 From: Emery Date: Wed, 24 Feb 2016 19:41:24 +0100 Subject: [PATCH] lenovo/x220i-tablet Fixes https://github.com/NixOS/nixpkgs/issues/13173 Fixes https://github.com/NixOS/nixpkgs/issues/13174 --- lenovo/x220i-tablet.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lenovo/x220i-tablet.nix diff --git a/lenovo/x220i-tablet.nix b/lenovo/x220i-tablet.nix new file mode 100644 index 0000000..39b3072 --- /dev/null +++ b/lenovo/x220i-tablet.nix @@ -0,0 +1,14 @@ +{ config, pkgs, ... }: + +{ + # TPM chip countains a RNG + security.rngd.enable = true; + + boot = { + kernelModules = [ "tp_smapi" ]; + extraModulePackages = [ config.boot.kernelPackages.tp_smapi ]; + }; + + # TLP Linux Advanced Power Management + services.tlp.enable = true; +}