From bf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sat, 29 Jul 2023 23:05:35 +0300 Subject: [PATCH] NixOS module: check system version for fonts --- nix/module.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/module.nix b/nix/module.nix index b48259d8..04f48fcd 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -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 = {