1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

lenovo: minor cosmetic changes

This commit is contained in:
Yegor Timoshenko 2017-12-22 02:56:28 +00:00
parent a64cf32a57
commit 440088677b
No known key found for this signature in database
GPG key ID: C34BF9DCC9DF8210
7 changed files with 28 additions and 19 deletions

View file

@ -1,7 +1,5 @@
# NOTE: this doesn't inherit from the `general.nix`
# as z510 is not a ThinkPad
{ config, pkgs, ... }:
{
hardware.cpu.intel.updateMicrocode = true;

View file

@ -1,5 +1,3 @@
{ ... }:
{
boot.kernelModules = mkDefault [ "kvm-intel" ];
services.xserver.videoDrivers = [ "intel" ];

View file

@ -1,6 +1,8 @@
{ pkgs, lib, ... }:
{ lib, pkgs, ... }:
with lib;
let
inherit (lib) mkDefault;
in
{
hardware.trackpoint = mkDefault {

View file

@ -6,11 +6,22 @@
boot = {
kernelParams = [
# Kernel GPU Savings Options (NOTE i915 chipset only)
"drm.debug=0" "drm.vblankoffdelay=1" "i915.semaphores=1" "i915.modeset=1"
"i915.use_mmio_flip=1" "i915.powersave=1" "i915.enable_ips=1"
"i915.disable_power_well=1" "i915.enable_hangcheck=1"
"i915.enable_cmd_parser=1" "i915.fastboot=0" "i915.enable_ppgtt=1"
"i915.reset=0" "i915.lvds_use_ssc=0" "i915.enable_psr=0" "vblank_mode=0"
"drm.debug=0"
"drm.vblankoffdelay=1"
"i915.semaphores=1"
"i915.modeset=1"
"i915.use_mmio_flip=1"
"i915.powersave=1"
"i915.enable_ips=1"
"i915.disable_power_well=1"
"i915.enable_hangcheck=1"
"i915.enable_cmd_parser=1"
"i915.fastboot=0"
"i915.enable_ppgtt=1"
"i915.reset=0"
"i915.lvds_use_ssc=0"
"i915.enable_psr=0"
"vblank_mode=0"
"i915.i915_enable_rc6=1"
];
blacklistedKernelModules = [

View file

@ -1,8 +1,8 @@
{ config, pkgs, ... }:
{
imports =
[ ../lib/kernel-version.nix
imports = [
../lib/kernel-version.nix
./general-intel.nix
];

View file

@ -8,7 +8,7 @@
boot = {
kernelModules = [ "tp_smapi" ];
extraModulePackages = [ config.boot.kernelPackages.tp_smapi ];
extraModulePackages = with config.boot.kernelPackages; [ tp_smapi ];
};
# hard disk protection if the laptop falls