summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 23:26:29 +0200
committerAlan Pearce2017-09-09 23:26:29 +0200
commit33bdedd376532cd30eb77de11fc7e2341c069531 (patch)
tree99095d5b5289243bfc2012af932c87c89efca8dc /modules
parent8eb4aea9debd55b133bdad3c584c270c7367e62c (diff)
downloadnixos-configuration-33bdedd376532cd30eb77de11fc7e2341c069531.tar.lz
nixos-configuration-33bdedd376532cd30eb77de11fc7e2341c069531.tar.zst
nixos-configuration-33bdedd376532cd30eb77de11fc7e2341c069531.zip
Set different fonts for high/low DPI
Diffstat (limited to 'modules')
-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 1f4644c..762e50e 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 0c8e05f..799eab8 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;