about summary refs log tree commit diff
path: root/system/modules
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-05-04T17·14-0400
committerGriffin Smith <root@gws.fyi>2020-05-04T17·14-0400
commit7ff91eb99a77364e1404a11c4ae1d34101138736 (patch)
treedf1fbda9761d2240db1d58446f11145e00e2fc41 /system/modules
parent46cd32c557128cea69ff9a2d7c9efe425d0063a0 (diff)
Break fonts out into their own module
More will go here
Diffstat (limited to 'system/modules')
-rw-r--r--system/modules/common.nix6
-rw-r--r--system/modules/fonts.nix12
2 files changed, 13 insertions, 5 deletions
diff --git a/system/modules/common.nix b/system/modules/common.nix
index 8d2902eaa6..d352981755 100644
--- a/system/modules/common.nix
+++ b/system/modules/common.nix
@@ -4,6 +4,7 @@
   imports =
     [
       ./xserver.nix
+      ./fonts.nix
       ./emacs.nix
       ./sound.nix
       ./urbint.nix
@@ -84,11 +85,6 @@
 
   nixpkgs.config.allowUnfree = true;
 
-  fonts.fonts = with pkgs; [
-    nerdfonts
-    noto-fonts-emoji
-  ];
-
   services.geoclue2.enable = true;
 
   powerManagement = {
diff --git a/system/modules/fonts.nix b/system/modules/fonts.nix
new file mode 100644
index 0000000000..babe30d427
--- /dev/null
+++ b/system/modules/fonts.nix
@@ -0,0 +1,12 @@
+{ config, lib, pkgs, ... }:
+{
+  fonts = {
+    fonts = with pkgs; [
+      nerdfonts
+      noto-fonts-emoji
+      twitter-color-emoji
+    ];
+
+    fontconfig.defaultFonts.emoji = ["Twitter Color Emoji"];
+  };
+}