mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
Add LENOVO Yoga 6 13ALC6 82ND
This commit is contained in:
parent
9577ab1eaf
commit
485f3bc2f2
3 changed files with 53 additions and 0 deletions
|
@ -189,6 +189,7 @@ See code for all available configurations.
|
|||
| [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `<nixos-hardware/lenovo/thinkpad/x280>` |
|
||||
| [Lenovo ThinkPad Z Series](lenovo/thinkpad/z) | `<nixos-hardware/lenovo/thinkpad/z>` |
|
||||
| [Lenovo ThinkPad Z13](lenovo/thinkpad/z/z13) | `<nixos-hardware/lenovo/thinkpad/z/z13>` |
|
||||
| [LENOVO Yoga 6 13ALC6 82ND](lenovo/yoga/6/13ALC6) | `<nixos-hardware/lenovo/yoga/6/13ALC6>` |
|
||||
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` |
|
||||
| [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` |
|
||||
| [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` |
|
||||
|
|
|
@ -127,6 +127,7 @@
|
|||
lenovo-thinkpad-x280 = import ./lenovo/thinkpad/x280;
|
||||
lenovo-thinkpad-z = import ./lenovo/thinkpad/z;
|
||||
lenovo-thinkpad-z13 = import ./lenovo/thinkpad/z/z13;
|
||||
lenovo-yoga-6-13ALC6 = import ./lenovo/yoga/6/13ALC6;
|
||||
microsoft-surface = import ./microsoft/surface;
|
||||
microsoft-surface-pro-3 = import ./microsoft/surface-pro/3;
|
||||
msi-gs60 = import ./msi/gs60;
|
||||
|
|
51
lenovo/yoga/6/13ALC6/default.nix
Normal file
51
lenovo/yoga/6/13ALC6/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.initrd.kernelModules = [
|
||||
"amdgpu"
|
||||
"ideapad_laptop"
|
||||
];
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
rocm-opencl-icd
|
||||
rocm-opencl-runtime
|
||||
amdvlk
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
hardware.opengl.extraPackages32 = with pkgs; [
|
||||
driversi686Linux.amdvlk
|
||||
];
|
||||
hardware.opengl = {
|
||||
driSupport = lib.mkDefault true;
|
||||
driSupport32Bit = lib.mkDefault true;
|
||||
};
|
||||
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
|
||||
|
||||
# Latest Kernel
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
hardware.bluetooth.powerOnBoot = lib.mkDefault false;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp.enable = lib.mkDefault true;
|
||||
# automatic screen orientation, only works in X11
|
||||
hardware.sensor.iio.enable = true;
|
||||
# energy savings
|
||||
boot.kernelParams = ["mem_sleep_default=deep" "pcie_aspm.policy=powersupersave"];
|
||||
powerManagement.enable = lib.mkDefault true;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
services.tlp.settings = {
|
||||
# CPU
|
||||
CPU_SCALING_GOVERNOR_ON_BAT="ondemand";
|
||||
CPU_SCALING_GOVERNOR_ON_AC="performance";
|
||||
CPU_BOOST_ON_AC=1;
|
||||
CPU_BOOST_ON_BAT=0;
|
||||
# Stop charging battery at 60%, ideapad_laptop driver required
|
||||
#STOP_CHARGE_THRESH_BAT0=1;
|
||||
# Stop charging battery at 100%
|
||||
STOP_CHARGE_THRESH_BAT0=0;
|
||||
# GPU
|
||||
RADEON_DPM_PERF_LEVEL_ON_AC="auto";
|
||||
RADEON_DPM_PERF_LEVEL_ON_BAT="low";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue