-
-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b678606
commit 99a69fb
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ lib, pkgs, ... }: | ||
let inherit (lib) mkDefault mkIf; | ||
in | ||
{ | ||
imports = [ | ||
../../common/pc/laptop | ||
../../common/pc/laptop/ssd | ||
../../common/hidpi.nix | ||
../../common/gpu/24.05-compat.nix | ||
]; | ||
|
||
# Necessary kernel modules | ||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "thunderbolt" ]; | ||
|
||
# For stage-1 screen resolution and external display output | ||
boot.initrd.kernelModules = [ "amdgpu" ]; | ||
|
||
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; | ||
} |