Commit 93bdf052e49f
Changed files (1)
hardware
hardware/thinkpad.nix
@@ -1,62 +1,63 @@
{ config, pkgs, ... }:
{
- environment.systemPackages = with pkgs; [
- linuxPackages.tp_smapi
- ];
- boot = {
- kernelParams = [
- # Kernel GPU Savings Options (NOTE i915 chipset only)
- "i915.enable_rc6=1" "i915.enable_fbc=1"
- "i915.lvds_use_ssc=0"
- "drm.debug=0" "drm.vblankoffdelay=1"
- ];
- blacklistedKernelModules = [
- # Kernel GPU Savings Options (NOTE i915 chipset only)
- "sierra_net" "cdc_mbim" "cdc_ncm"
- ];
- };
- services = {
- acpid = {
- enable = true;
- };
- tlp = {
- enable = true;
- };
- };
- services.xserver = {
- synaptics.enable = false;
- config =
- ''
+ hardware.cpu.intel.updateMicrocode = true;
+ environment.systemPackages = with pkgs; [
+ linuxPackages.tp_smapi
+ ];
+ boot = {
+ kernelParams = [
+ # Kernel GPU Savings Options (NOTE i915 chipset only)
+ "i915.enable_rc6=1" "i915.enable_fbc=1"
+ "i915.lvds_use_ssc=0"
+ "drm.debug=0" "drm.vblankoffdelay=1"
+ ];
+ blacklistedKernelModules = [
+ # Kernel GPU Savings Options (NOTE i915 chipset only)
+ "sierra_net" "cdc_mbim" "cdc_ncm"
+ ];
+ };
+ services = {
+ acpid = {
+ enable = true;
+ };
+ tlp = {
+ enable = true;
+ };
+ };
+ services.xserver = {
+ synaptics.enable = false;
+ config =
+ ''
Section "InputClass"
- Identifier "Enable libinput for TrackPoint"
- MatchIsPointer "on"
- Driver "libinput"
- Option "ScrollMethod" "button"
- Option "ScrollButton" "8"
+ Identifier "Enable libinput for TrackPoint"
+ MatchIsPointer "on"
+ Driver "libinput"
+ Option "ScrollMethod" "button"
+ Option "ScrollButton" "8"
EndSection
- '';
- inputClassSections = [
- ''
+ '';
+ inputClassSections = [
+ ''
Identifier "evdev touchpad off"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "Ignore" "true"
- ''
- ];
- };
- boot.extraModprobeConfig = ''
- options snd_hda_intel power_save=1
- '';
- systemd.services.tune-powermanagement = {
- description = "Tune Powermanagement";
- serviceConfig.Type = "oneshot";
- serviceConfig.RemainAfterExit = true;
- wantedBy = [ "multi-user.target" ];
- unitConfig.RequiresMountsFor = "/sys";
- script = ''
- echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'
- '';
- };
+ ''
+ ];
+ };
+ boot.extraModprobeConfig = ''
+ options snd_hda_intel power_save=1
+ '';
+ systemd.services.tune-powermanagement = {
+ description = "Tune Powermanagement";
+ serviceConfig.Type = "oneshot";
+ serviceConfig.RemainAfterExit = true;
+ wantedBy = [ "multi-user.target" ];
+ unitConfig.RequiresMountsFor = "/sys";
+ script = ''
+ echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'
+ '';
+ };
}