diff options
author | Mihai Fufezan <[email protected]> | 2023-07-29 23:05:35 +0300 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2023-07-29 23:05:35 +0300 |
commit | bf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd (patch) | |
tree | 3d7e368a4c1f04b2ec27fefdb21087a359e8e051 | |
parent | a805905a492cda41e3ff17cb2f91b1388e67c32b (diff) | |
download | Hyprland-bf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd.tar.gz Hyprland-bf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd.zip |
NixOS module: check system version for fonts
-rw-r--r-- | nix/module.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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 = { |