hidpi: drop legacy options

This commit is contained in:
Jörg Thalheim authored and mergify[bot] committed 2024-06-08 06:29:16 +00:00
1 parent d6c6cf6f5f
commit 057a7996d0
1 file changed
+5 -11
+5 -11
View File
@@ -1,12 +1,6 @@
{ lib, pkgs, ... }:
let
# This option is removed from NixOS 23.05 and up
nixosVersion = lib.versions.majorMinor lib.version;
config = if lib.versionOlder nixosVersion "23.05" then {
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
{
# 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;
}