feat(framework): tweak HiDPi settings for a nicer display
This commit is contained in:
@@ -33,8 +33,8 @@
|
|||||||
# TODO Enable fingerprint support
|
# TODO Enable fingerprint support
|
||||||
# services.fprintd.enable = true;
|
# services.fprintd.enable = true;
|
||||||
|
|
||||||
# Display thins like a boss
|
# Display things like a boss
|
||||||
hardware.video.hidpi.enable = lib.mkDefault true; # https://github.com/kvark/dotfiles/blob/master/nix/hardware-configuration.nix#L41
|
## Make it work
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
hardware.opengl.extraPackages = with pkgs; [
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
mesa_drivers
|
mesa_drivers
|
||||||
@@ -43,6 +43,15 @@
|
|||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
intel-media-driver
|
intel-media-driver
|
||||||
];
|
];
|
||||||
|
## Make it nice (https://nixos.wiki/wiki/Xorg && https://wiki.archlinux.org/title/Framework_Laptop#HiDPI_settings)
|
||||||
|
# https://github.com/kvark/dotfiles/blob/master/nix/hardware-configuration.nix#L41
|
||||||
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||||
|
services.xserver.dpi = 130;
|
||||||
|
environment.variables = {
|
||||||
|
GDK_SCALE = "1.5";
|
||||||
|
GDK_DPI_SCALE = "0.77"; # 1/1.3
|
||||||
|
_JAVA_OPTIONS = "-Dsun.java2d.uiScale=1.5";
|
||||||
|
};
|
||||||
|
|
||||||
# Bring in some audio
|
# Bring in some audio
|
||||||
security.rtkit.enable = true; # rtkit is optional but recommended
|
security.rtkit.enable = true; # rtkit is optional but recommended
|
||||||
|
|||||||
Reference in New Issue
Block a user