mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 23:13:29 +01:00
treewide: move hidpi settings to another module, make conditional on nixos version
This commit is contained in:
1 parent
a4bc667096
commit
739fd62a50
4 files changed
+16
-5
No files matched your search
@@ -0,0 +1,12 @@
|
||||
{ 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
|
||||
Reference in new issue
Block a user