NixOS module: check system version for fonts

This commit is contained in:
Mihai Fufezan 2023-07-29 23:05:35 +03:00
parent a805905a49
commit bf0d8ab4a3
No known key found for this signature in database
GPG Key ID: 5899325F2F120900
1 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,11 @@ in {
};
};
fonts.enableDefaultPackages = mkDefault true;
fonts =
if versionOlder config.system.stateVersion "23.11"
then {enableDefaultFonts = mkDefault true;}
else {enableDefaultPackages = mkDefault true;};
hardware.opengl.enable = mkDefault true;
programs = {