nixos-generate-config: enable hidpi module for displays

wip/yesman
Jörg Thalheim 4 years ago
parent f7a398c481
commit 435340ed58
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
  1. 4
      nixos/modules/installer/tools/nixos-generate-config.pl

@ -497,8 +497,8 @@ if (-f $fb_modes_file && -r $fb_modes_file) {
$modes =~ m/([0-9]+)x([0-9]+)/;
my $console_width = $1, my $console_height = $2;
if ($console_width > 1920) {
push @attrs, "# High-DPI console";
push @attrs, 'console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";';
push @attrs, "# high-resolution display";
push @attrs, 'hardware.video.hidpi.enable = lib.mkDefault true;';
}
}

Loading…
Cancel
Save