summaryrefslogtreecommitdiffstats
path: root/lenovo/x220i-tablet.nix
blob: 3c729baa670d7b6d35fe53ef467d4dcd912f6f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ config, pkgs, ... }:

{
  imports = [ ./general.nix ];

  # TPM chip countains a RNG
  security.rngd.enable = true;

  boot = {
    kernelModules = [ "tp_smapi" ];
    extraModulePackages = [ config.boot.kernelPackages.tp_smapi ];
  };

  # hard disk protection if the laptop falls
  services.hdapsd.enable = true;

  # enable volume control buttons
  sound.enableMediaKeys = true;

  # fingerprint reader: login and unlock with fingerprint (if you add one with `fprintd-enroll`)
  #services.fprintd.enable = true;
  #security.pam.services.login.fprintAuth = true;
  #security.pam.services.xscreensaver.fprintAuth = true;
  # similarly for other PAM providers
}