1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-24 10:39:44 +01:00
nixos-hardware/lenovo/yoga/7/14ARH7/shared.nix

33 lines
833 B
Nix
Raw Normal View History

{ ... }:
{
imports = [
../../../../common/cpu/amd
# Better power-savings from AMD PState:
../../../../common/cpu/amd/pstate.nix
../../../../common/gpu/amd
../../../../common/pc/laptop
../../../../common/pc/laptop/acpi_call.nix
../../../../common/pc/ssd
];
# Configure basic system settings:
boot = {
kernelModules = [ "kvm-amd" ];
kernelParams = [
"mem_sleep_default=deep"
"pcie_aspm.policy=powersupersave"
## Supposed to help fix for suspend issues: SSD not correctly working, and Keyboard not responding:
## Not needed for the 6.1+ kernels?
# "iommu=pt"
## Fixes for s2idle:
## https://www.phoronix.com/news/More-s2idle-Rembrandt-Linux
"acpi.prefer_microsoft_dsm_guid=1"
];
blacklistedKernelModules = [ "nouveau" ];
};
}