mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
592: thinkpad-z: move to hidpi module r=Mic92 a=Mic92 593: lenovo legion 7 slim 15ach6: add hidpi settings r=Mic92 a=rhoriguchi Co-authored-by: Jörg Thalheim <joerg@thalheim.io> Co-authored-by: Ryan Horiguchi <ryan.horiguchi@gmail.com>
This commit is contained in:
commit
5854eabcd6
2 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,7 @@ in {
|
|||
../../../common/cpu/amd
|
||||
../../../common/gpu/amd
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/hidpi.nix
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/laptop/ssd
|
||||
];
|
||||
|
@ -17,6 +18,9 @@ in {
|
|||
|
||||
services.thermald.enable = lib.mkDefault true;
|
||||
|
||||
# √(3840² + 2160²) px / 15.60 in ≃ 282 dpi
|
||||
services.xserver.dpi = 282;
|
||||
|
||||
# https://wiki.archlinux.org/title/backlight#Backlight_is_always_at_full_brightness_after_a_reboot_with_amdgpu_driver
|
||||
systemd.services.fix-brightness = {
|
||||
before = [
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
../../../common/pc/laptop
|
||||
../../../common/pc/laptop/acpi_call.nix
|
||||
../../../common/pc/laptop/ssd
|
||||
../../../common/hidpi.nix # can be dropped after nixos 23.05
|
||||
];
|
||||
# kernel versions prior to 5.18 won't boot
|
||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_latest);
|
||||
|
||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||
hardware.trackpoint.device = lib.mkDefault "TPPS/2 Elan TrackPoint";
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
|
||||
services.fprintd.enable = lib.mkDefault true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue