fontconfig: only ship on GUI systems
This commit is contained in:
parent
c21efa005f
commit
38411617ef
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
./assorted.nix
|
||||
./cozy.nix
|
||||
./epiphany.nix
|
||||
./fontconfig.nix
|
||||
./git.nix
|
||||
./gnome-feeds.nix
|
||||
./gpodder.nix
|
||||
|
|
14
hosts/common/programs/fontconfig.nix
Normal file
14
hosts/common/programs/fontconfig.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user