From 0b3c0cbea00caf64a5d3f67271bc7c5ea1c8b598 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 27 Oct 2024 13:30:29 +0100 Subject: [PATCH] hidpi --- flake.nix | 2 +- profiles/hidpi.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 profiles/hidpi.nix diff --git a/flake.nix b/flake.nix index eee2f88..cb25ac9 100644 --- a/flake.nix +++ b/flake.nix @@ -258,7 +258,7 @@ cuda-prime = ls [ ./hardware/gpu/cuda.nix hw.common-gpu-nvidia ]; rocm = ls [ ./hardware/gpu/rocm.nix hw.common-gpu-amd ]; nspawn = ls [ "${nixos-nspawn}/nspawn-image.nix" { boot.isContainer = true; } ]; - hidpi = hw.common-hidpi; + hidpi = ls [ hw.common-hidpi ./profiles/hidpi.nix ]; p1005 = ./hardware/printer/hp-laserjet-p1005.nix; au = ./profiles/auto-upgrade.nix; ts = ./profiles/tailscale.nix; diff --git a/profiles/hidpi.nix b/profiles/hidpi.nix new file mode 100644 index 0000000..d0ec06a --- /dev/null +++ b/profiles/hidpi.nix @@ -0,0 +1,9 @@ +{ + 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"; + }; +}