mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-14 23:19:41 +01:00
22 lines
531 B
Nix
22 lines
531 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
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
|
||
|
];
|
||
|
|
||
|
boot.extraModulePackages = [ lenovo-speaker-fix ];
|
||
|
|
||
|
# √(2560² + 1600²) px / 16 in ≃ 189 dpi
|
||
|
services.xserver.dpi = 189;
|
||
|
}
|