all repos — nixfiles @ 33bdedd376532cd30eb77de11fc7e2341c069531

System and user configuration, managed by nix and home-manager

Set different fonts for high/low DPI
Alan Pearce alan@alanpearce.eu
Sat, 09 Sep 2017 23:26:29 +0200
commit

33bdedd376532cd30eb77de11fc7e2341c069531

parent

8eb4aea9debd55b133bdad3c584c270c7367e62c

2 files changed, 11 insertions(+), 3 deletions(-)

jump to
M modules/hidpi.nixmodules/hidpi.nix
@@ -6,4 +6,12 @@ consolePackages = with pkgs; [       terminus_font
     ];
   };
+
+  fonts = {
+    defaultFonts = {
+      monospace = [ "Noto Mono" ];
+      sansSerif = [ "Noto Sans" ];
+      serif = [ "Noto Serif" ];
+    };
+  };
 }
M modules/xserver.nixmodules/xserver.nix
@@ -41,9 +41,9 @@ enableFontDir = true;     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;