mirror of
https://github.com/NixOS/nixos-hardware
synced 2025-01-28 19:55:01 +01:00
gpd/pocket-4: init
This commit is contained in:
parent
b678606690
commit
3883dfe5ee
3 changed files with 31 additions and 0 deletions
|
@ -180,6 +180,7 @@ See code for all available configurations.
|
|||
| [GPD MicroPC](gpd/micropc) | `<nixos-hardware/gpd/micropc>` |
|
||||
| [GPD P2 Max](gpd/p2-max) | `<nixos-hardware/gpd/p2-max>` |
|
||||
| [GPD Pocket 3](gpd/pocket-3) | `<nixos-hardware/gpd/pocket-3>` |
|
||||
| [GPD Pocket 4](gpd/pocket-4) | `<nixos-hardware/gpd/pocket-4>` |
|
||||
| [GPD WIN 2](gpd/win-2) | `<nixos-hardware/gpd/win-2>` |
|
||||
| [GPD WIN Max 2 2023](gpd/win-max-2/2023) | `<nixos-hardware/gpd/win-max-2/2023>` |
|
||||
| [GPD WIN Mini 2024](gpd/win-mini/2024) | `<nixos-hardware/gpd/win-mini/2024>` |
|
||||
|
|
|
@ -121,6 +121,7 @@
|
|||
gpd-micropc = import ./gpd/micropc;
|
||||
gpd-p2-max = import ./gpd/p2-max;
|
||||
gpd-pocket-3 = import ./gpd/pocket-3;
|
||||
gpd-pocket-4 = import ./gpd/pocket-4;
|
||||
gpd-win-2 = import ./gpd/win-2;
|
||||
gpd-win-max-2-2023 = import ./gpd/win-max-2/2023;
|
||||
gpd-win-mini-2024 = import ./gpd/win-mini/2024;
|
||||
|
|
29
gpd/pocket-4/default.nix
Normal file
29
gpd/pocket-4/default.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue