diff options
author | Linus Heckemann <git@sphalerite.org> | 2020-07-22 17:43:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 17:43:03 +0200 |
commit | a5d20d25eb136a8ad85864c1be5325dd50aaa880 (patch) | |
tree | 3caaa5abf373a81e146bc891032a50af2d6a3587 /nixos/modules/hardware | |
parent | 714fac4cc9ba9b0ef29964c8b7fd9d50455aa380 (diff) | |
parent | b6a1dc51d0bd386beefd3541e25bb24e44894bd7 (diff) |
Merge pull request #88669 from Mic92/hidpi
nixos/hidpi: Reasonable defaults for high-density displays
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/video/hidpi.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/hardware/video/hidpi.nix b/nixos/modules/hardware/video/hidpi.nix new file mode 100644 index 000000000000..ac72b652504e --- /dev/null +++ b/nixos/modules/hardware/video/hidpi.nix @@ -0,0 +1,16 @@ +{ lib, pkgs, config, ...}: +with lib; + +{ + options.hardware.video.hidpi.enable = mkEnableOption "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"; + + # TODO Find reasonable defaults X11 & wayland + }; +} |