about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/system/fonts/default.nix10
-rw-r--r--modules/system/hardware/default.nix4
2 files changed, 7 insertions, 7 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;
diff --git a/modules/system/hardware/default.nix b/modules/system/hardware/default.nix
index acf9fb2e..af20ddcd 100644
--- a/modules/system/hardware/default.nix
+++ b/modules/system/hardware/default.nix
@@ -36,7 +36,7 @@ in {
 
     # TODO: Remove the support for the old keyboards <2024-05-16>
     services.udev.extraRules =
-      lib.mkIf cfg.moonlander.enableLiveTraining ''
+      lib.strings.optionalString cfg.moonlander.enableLiveTraining ''
         # Rules for Oryx web flashing and live training
         KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", MODE="0664", GROUP="plugdev"
         KERNEL=="hidraw*", ATTRS{idVendor}=="3297", MODE="0664", GROUP="plugdev"
@@ -51,7 +51,7 @@ in {
           # Rule for the Planck EZ
           SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="6060", GROUP="plugdev"
       ''
-      + lib.mkIf cfg.moonlander.enableFlashing
+      + lib.strings.optionalString cfg.moonlander.enableFlashing
       ''
         # Wally Flashing rules for the Ergodox EZ
         ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"