summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 23:26:29 +0200
committerAlan Pearce2017-09-09 23:26:29 +0200
commit33bdedd376532cd30eb77de11fc7e2341c069531 (patch)
tree99095d5b5289243bfc2012af932c87c89efca8dc
parent8eb4aea9debd55b133bdad3c584c270c7367e62c (diff)
downloadnixfiles-33bdedd376532cd30eb77de11fc7e2341c069531.tar.lz
nixfiles-33bdedd376532cd30eb77de11fc7e2341c069531.tar.zst
nixfiles-33bdedd376532cd30eb77de11fc7e2341c069531.zip
Set different fonts for high/low DPI
-rw-r--r--modules/hidpi.nix8
-rw-r--r--modules/xserver.nix6
2 files changed, 11 insertions, 3 deletions
diff --git a/modules/hidpi.nix b/modules/hidpi.nix
index 1f4644c5..762e50e1 100644
--- a/modules/hidpi.nix
+++ b/modules/hidpi.nix
@@ -6,4 +6,12 @@
       terminus_font
     ];
   };
+
+  fonts = {
+    defaultFonts = {
+      monospace = [ "Noto Mono" ];
+      sansSerif = [ "Noto Sans" ];
+      serif = [ "Noto Serif" ];
+    };
+  };
 }
diff --git a/modules/xserver.nix b/modules/xserver.nix
index 0c8e05fa..799eab82 100644
--- a/modules/xserver.nix
+++ b/modules/xserver.nix
@@ -41,9 +41,9 @@
     enableDefaultFonts = true;
     fontconfig = {
       defaultFonts = {
-        monospace = [ "Roboto Mono" ];
-        sansSerif = [ "Noto Sans" ];
-        serif = [ "Noto Serif" ];
+        monospace = [ "Liberation Mono" ];
+        sansSerif = [ "Liberation Sans" ];
+        serif = [ "Liberation Serif" ];
       };
       ultimate = {
         enable = true;