1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-16 16:09:40 +01:00

hidpi: drop legacy options

This commit is contained in:
Jörg Thalheim 2024-06-08 08:12:26 +02:00 committed by mergify[bot]
parent d6c6cf6f5f
commit 057a7996d0

View file

@ -1,12 +1,6 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
let {
# This option is removed from NixOS 23.05 and up # Just set the console font, don't mess with the font settings
nixosVersion = lib.versions.majorMinor lib.version; console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
config = if lib.versionOlder nixosVersion "23.05" then { console.earlySetup = lib.mkDefault true;
hardware.video.hidpi.enable = lib.mkDefault true; }
} else {
# Just set the console font, don't mess with the font settings
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
console.earlySetup = lib.mkDefault true;
};
in config