about summary refs log tree commit diff stats
path: root/modules/system/fonts/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/system/fonts/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/fonts/default.nix b/modules/system/fonts/default.nix
index fa99c1f3..abd5664b 100644
--- a/modules/system/fonts/default.nix
+++ b/modules/system/fonts/default.nix
@@ -10,7 +10,7 @@ in {
     enable = lib.mkEnableOption "fonts";
 
     fonts = lib.mkOption {
-      type = lib.types.listOf lib.types.path;
+      type = lib.types.listOf lib.types.str;
       example = lib.literalExpression ''["SourceCodePro" "Overpass" "FiraCode"]'';
       default = [
         "SourceCodePro"
@@ -19,7 +19,7 @@ in {
       description = "The nerd-fonts to install";
     };
 
-    enableEmoji = lib.mkEnableOpiton "emoji font support";
+    enableEmoji = lib.mkEnableOption "emoji font support";
   };
 
   config = lib.mkIf cfg.enable {
@@ -42,9 +42,9 @@ in {
         localConf = lib.mkIf cfg.enableEmoji (builtins.readFile ./emoji_font.xml);
 
         defaultFonts = {
-          serif = lib.mkForce ["Liberation Serif"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji";
-          sansSerif = lib.mkForce ["Overpass Nerd Font Propo"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji";
-          monospace = lib.mkForce ["SauceCodePro Nerd Font Mono"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji";
+          serif = lib.mkForce (["Liberation Serif"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji");
+          sansSerif = lib.mkForce (["Overpass Nerd Font Propo"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji");
+          monospace = lib.mkForce (["SauceCodePro Nerd Font Mono"] ++ lib.optional cfg.enableEmoji "Noto Color Emoji");
           emoji = lib.mkIf cfg.enableEmoji (lib.mkForce ["Noto Color Emoji"]);
         };
         allowType1 = false;