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:
bors[bot] 2023-03-25 17:14:49 +00:00 committed by GitHub
commit 5854eabcd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -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 = [

View file

@ -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;