aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix/module.nix
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2023-07-29 23:05:35 +0300
committerMihai Fufezan <[email protected]>2023-07-29 23:05:35 +0300
commitbf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd (patch)
tree3d7e368a4c1f04b2ec27fefdb21087a359e8e051 /nix/module.nix
parenta805905a492cda41e3ff17cb2f91b1388e67c32b (diff)
downloadHyprland-bf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd.tar.gz
Hyprland-bf0d8ab4a3c44728cd1330ee32a8143ad1f5dcdd.zip
NixOS module: check system version for fonts
Diffstat (limited to 'nix/module.nix')
-rw-r--r--nix/module.nix6
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 = {