gpd/pocket-4: init

This commit is contained in:
M. Ian Graham
2025-01-16 08:43:20 +09:00
parent b678606690
commit 3883dfe5ee
3 changed files with 31 additions and 0 deletions

29
gpd/pocket-4/default.nix Normal file
View File

@@ -0,0 +1,29 @@
{ lib, pkgs, ... }:
let inherit (lib) mkDefault;
in
{
imports = [
../../common/pc/laptop
../../common/pc/laptop/ssd
../../common/cpu/amd
../../common/cpu/amd/pstate.nix
../../common/gpu/amd
../../common/hidpi.nix
];
boot.kernelParams = [
# The GPD Pocket 4 uses a tablet LTPS display, that is mounted rotated 90° counter-clockwise
"fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up"
];
fonts.fontconfig = {
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
# The display has √(2560² + 1600²) px / 8.8in ≃ 343 dpi
# Per the documentation, antialiasing, hinting, etc. have no visible effect at such high pixel densities anyhow.
hinting.enable = mkDefault false;
};
# More HiDPI settings
services.xserver.dpi = 343;
}