Add system-ui customization

... and make the GTK apps use it
This commit is contained in:
Natsu Kagami 2023-06-22 01:40:41 +02:00
parent 79d3deaac4
commit 38a1b1a889
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 15 additions and 1 deletions

View file

@ -115,7 +115,7 @@ in
## GTK
gtk.enable = true;
gtk.cursorTheme = { inherit (config.home.pointerCursor) package name size; };
gtk.font.name = "Noto Sans";
gtk.font.name = "system-ui";
gtk.font.size = 10;
gtk.iconTheme = {
package = pkgs.numix-icon-theme;

View file

@ -39,6 +39,20 @@ in
sansSerif = lib.mkBefore [ "IBM Plex Sans" "IBM Plex Sans JP" "IBM Plex Sans KR" ];
monospace = lib.mkBefore [ "IBM Plex Mono" ];
};
localConf = ''
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias binding="same">
<family>system-ui</family>
<prefer>
<family>IBM Plex Sans</family>
<family>IBM Plex Sans JP</family>
<family>IBM Plex Sans KR</family>
</prefer>
</alias>
</fontconfig>
'';
};
fontDir.enable = true;
} else { }) // (if pkgs.stdenv.isDarwin then {