2024-05-24 00:40:09 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2024-04-10 08:52:19 +00:00
|
|
|
|
|
|
|
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/laptop/ssd
|
|
|
|
];
|
|
|
|
|
2024-05-24 00:40:09 +00:00
|
|
|
# Kernel 6.9 includes the speaker fix, so only install this on systems with older kernels.
|
2024-05-29 16:25:41 +00:00
|
|
|
boot.extraModulePackages = lib.mkIf lib.versionOlder config.boot.kernelPackages.kernel.version "6.9" [ lenovo-speaker-fix ];
|
2024-04-10 08:52:19 +00:00
|
|
|
|
|
|
|
# √(2560² + 1600²) px / 16 in ≃ 189 dpi
|
|
|
|
services.xserver.dpi = 189;
|
2024-05-03 13:28:12 +00:00
|
|
|
|
|
|
|
# Enable fingerprint reader
|
|
|
|
services.fprintd = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.fprintd-tod;
|
|
|
|
tod = {
|
|
|
|
enable = true;
|
|
|
|
driver = pkgs.libfprint-2-tod1-elan;
|
|
|
|
};
|
|
|
|
};
|
2024-04-10 08:52:19 +00:00
|
|
|
}
|