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

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; hardware.opengl.enable = mkDefault true;
programs = { programs = {