diff options
author | K900 <me@0upti.me> | 2023-03-20 21:22:22 +0300 |
---|---|---|
committer | Raito Bezarius <masterancpp@gmail.com> | 2023-03-21 13:29:57 +0100 |
commit | 4787ebf7ae2ab071389be7ff86cf38edeee7e9f8 (patch) | |
tree | 157c3e3c685894e000e08592537176bd561e34da /nixos/modules/hardware | |
parent | 49fd723a693feb3277cad752dd56f789d071c8cf (diff) |
nixos/hidpi: remove
The single option tries to do too much work, which just ends up confusing people. So: - don't force the console font, the kernel can figure this out as of #210205 - don't force the systemd-boot mode, it's an awkward mode that's not supported on most things and will break flicker-free boot - add a separate option for the xorg cursor scaling trick and move it under the xorg namespace - add a general `fonts.optimizeForVeryHighDPI` option that explicitly says what it does - alias the old option to that - don't set any of those automatically in nixos-generate-config
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/video/hidpi.nix | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/nixos/modules/hardware/video/hidpi.nix b/nixos/modules/hardware/video/hidpi.nix deleted file mode 100644 index fe63784e57f58..0000000000000 --- a/nixos/modules/hardware/video/hidpi.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ lib, pkgs, config, ...}: -with lib; - -{ - options.hardware.video.hidpi.enable = mkEnableOption (lib.mdDoc "Font/DPI configuration optimized for HiDPI displays"); - - config = mkIf config.hardware.video.hidpi.enable { - console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz"; - - # Needed when typing in passwords for full disk encryption - console.earlySetup = mkDefault true; - boot.loader.systemd-boot.consoleMode = mkDefault "1"; - - - # Disable font anti-aliasing, hinting, and sub-pixel rendering by default - # See recommendations in fonts/fontconfig.nix - fonts.fontconfig = { - antialias = mkDefault false; - hinting.enable = mkDefault false; - subpixel.lcdfilter = mkDefault "none"; - }; - - # TODO Find reasonable defaults X11 & wayland - }; -} |