fontconfig: only ship on GUI systems

This commit is contained in:
Colin 2023-07-07 23:44:45 +00:00
parent c21efa005f
commit 38411617ef
4 changed files with 17 additions and 13 deletions

View File

@ -60,18 +60,6 @@
ManagedOOMSwap = "kill";
};
# TODO: move this to gui machines only
fonts = {
enableDefaultFonts = true;
fonts = with pkgs; [ font-awesome noto-fonts-emoji hack-font ];
fontconfig.enable = true;
fontconfig.defaultFonts = {
emoji = [ "Font Awesome 6 Free" "Noto Color Emoji" ];
monospace = [ "Hack" ];
serif = [ "DejaVu Serif" ];
sansSerif = [ "DejaVu Sans" ];
};
};
system.activationScripts.nixClosureDiff = {
supportsDryActivation = true;

View File

@ -143,8 +143,9 @@
guiApps = {
package = null;
suggestedPrograms = [
"web-browser"
"fontconfig" # for default fonts
"tuiApps"
"web-browser"
] ++ lib.optional (pkgs.system == "x86_64-linux") "x86GuiApps"
++ [
# "celluloid" # mpv frontend

View File

@ -6,6 +6,7 @@
./assorted.nix
./cozy.nix
./epiphany.nix
./fontconfig.nix
./git.nix
./gnome-feeds.nix
./gpodder.nix

View File

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
fonts = lib.mkIf config.sane.programs.fontconfig.enabled {
fontconfig.enable = true;
fontconfig.defaultFonts = lib.mkDefault {
emoji = [ "Font Awesome 6 Free" "Noto Color Emoji" ];
monospace = [ "Hack" ];
serif = [ "DejaVu Serif" ];
sansSerif = [ "DejaVu Sans" ];
};
enableDefaultFonts = lib.mkDefault true;
fonts = with pkgs; lib.mkDefault [ font-awesome noto-fonts-emoji hack-font ];
};
}