1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-10 04:59:40 +01:00

lenovo/legion/16arha7: fix kernel check for speaker patch

This commit is contained in:
Andre 2024-07-30 20:08:35 -04:00 committed by mergify[bot]
parent 72b83c838d
commit dfe45103b6

View file

@ -14,8 +14,8 @@ in
../../../common/pc/laptop/ssd ../../../common/pc/laptop/ssd
]; ];
# Kernel 6.9 includes the speaker fix, so only install this on systems with older kernels. # Kernel 6.10 includes the speaker fix, so only install this on systems with older kernels.
boot.extraModulePackages = lib.mkIf (!(lib.versionOlder config.boot.kernelPackages.kernel.version "6.9")) [ lenovo-speaker-fix ]; boot.extraModulePackages = lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.10") [ lenovo-speaker-fix ];
# √(2560² + 1600²) px / 16 in ≃ 189 dpi # √(2560² + 1600²) px / 16 in ≃ 189 dpi
services.xserver.dpi = 189; services.xserver.dpi = 189;