mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 18:08:38 +08:00
lenovo/x220i-tablet
Fixes https://github.com/NixOS/nixpkgs/issues/13173 Fixes https://github.com/NixOS/nixpkgs/issues/13174
This commit is contained in:
14
lenovo/x220i-tablet.nix
Normal file
14
lenovo/x220i-tablet.nix
Normal file
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user