about summary refs log tree commit diff
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
parent46cd32c557128cea69ff9a2d7c9efe425d0063a0 (diff)
Break fonts out into their own module
More will go here
-rw-r--r--home/home.nix2
-rw-r--r--system/modules/common.nix6
-rw-r--r--system/modules/fonts.nix12
3 files changed, 15 insertions, 5 deletions
diff --git a/home/home.nix b/home/home.nix
index 8a6704ecc8e1..42f155362e98 100644
--- a/home/home.nix
+++ b/home/home.nix
@@ -4,6 +4,8 @@ let machine = ./machines/chupacabra.nix; in
 {
   imports = [
     ./modules/alacritty.nix
+    ./modules/alsi.nix
+    ./modules/development.nix
     ./modules/emacs.nix
     ./modules/email.nix
     ./modules/firefox.nix
diff --git a/system/modules/common.nix b/system/modules/common.nix
index 8d2902eaa6ae..d35298175515 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 000000000000..babe30d4271f
--- /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"];
+  };
+}