mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 08:47:13 +08:00
40 lines
909 B
Nix
40 lines
909 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
lenovo-speaker-fix = pkgs.callPackage ./audio/lenovo-16ARHA7_speaker-fix.nix {
|
|
# Make sure the module targets the same kernel as your system is using.
|
|
inherit (config.boot.kernelPackages) kernel;
|
|
};
|
|
in
|
|
{
|
|
imports = [
|
|
../../../common/cpu/amd/pstate.nix
|
|
../../../common/gpu/amd
|
|
../../../common/pc/laptop
|
|
../../../common/pc/ssd
|
|
];
|
|
|
|
# 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.10")
|
|
[ lenovo-speaker-fix ];
|
|
|
|
# √(2560² + 1600²) px / 16 in ≃ 189 dpi
|
|
services.xserver.dpi = 189;
|
|
|
|
# Enable fingerprint reader
|
|
services.fprintd = {
|
|
enable = true;
|
|
package = pkgs.fprintd-tod;
|
|
tod = {
|
|
enable = true;
|
|
driver = pkgs.libfprint-2-tod1-elan;
|
|
};
|
|
};
|
|
}
|