mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
initial commit
This commit is contained in:
commit
7517f318dc
55 changed files with 1401 additions and 0 deletions
20
hardware/t14.nix
Normal file
20
hardware/t14.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
boot = {
|
||||
# acpi_call makes tlp work for newer thinkpads
|
||||
kernelModules = [ "acpi_call" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||
|
||||
# Force use of the thinkpad_acpi driver for backlight control.
|
||||
# This allows the backlight save/load systemd service to work.
|
||||
kernelParams = [ "acpi_backlight=native" ];
|
||||
|
||||
# video driver
|
||||
initrd.kernelModules = [ "i915" ];
|
||||
};
|
||||
|
||||
services.fstrim.enable = lib.mkDefault true;
|
||||
|
||||
# Special power management settings for ThinkPads
|
||||
services.tlp.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue