mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-24 18:49:45 +01:00
13 lines
473 B
Nix
13 lines
473 B
Nix
|
{ 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
|