25 lines
746 B
Nix
25 lines
746 B
Nix
{ inputs, ... }:
|
|
{
|
|
imports = [
|
|
# https://github.com/NixOS/nixos-hardware/blob/master/common/hidpi.nix
|
|
inputs.nixos-hardware.nixosModules.common-hidpi
|
|
];
|
|
|
|
environment.variables = {
|
|
# better fonts:
|
|
# https://web.archive.org/web/20230921201835/https://old.reddit.com/r/linux_gaming/comments/16lwgnj/is_it_possible_to_improve_font_rendering_on_linux/
|
|
# via
|
|
# https://github.com/samemrecebi
|
|
FREETYPE_PROPERTIES = "cff:no-stem-darkening=0 autofitter:no-stem-darkening=0";
|
|
|
|
# TODO: enable these?
|
|
|
|
# # https://wiki.archlinux.org/title/HiDPI#Qt_5
|
|
# QT_AUTO_SCREEN_SCALE_FACTOR = 1;
|
|
# QT_ENABLE_HIGHDPI_SCALING = 1;
|
|
|
|
# # https://wiki.archlinux.org/title/HiDPI#GDK_3_(GTK_3)
|
|
# GDK_SCALE = 2;
|
|
};
|
|
}
|