fontconfig: only ship on GUI systems
This commit is contained in:
@@ -60,18 +60,6 @@
|
|||||||
ManagedOOMSwap = "kill";
|
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 = {
|
system.activationScripts.nixClosureDiff = {
|
||||||
supportsDryActivation = true;
|
supportsDryActivation = true;
|
||||||
|
@@ -143,8 +143,9 @@
|
|||||||
guiApps = {
|
guiApps = {
|
||||||
package = null;
|
package = null;
|
||||||
suggestedPrograms = [
|
suggestedPrograms = [
|
||||||
"web-browser"
|
"fontconfig" # for default fonts
|
||||||
"tuiApps"
|
"tuiApps"
|
||||||
|
"web-browser"
|
||||||
] ++ lib.optional (pkgs.system == "x86_64-linux") "x86GuiApps"
|
] ++ lib.optional (pkgs.system == "x86_64-linux") "x86GuiApps"
|
||||||
++ [
|
++ [
|
||||||
# "celluloid" # mpv frontend
|
# "celluloid" # mpv frontend
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
./assorted.nix
|
./assorted.nix
|
||||||
./cozy.nix
|
./cozy.nix
|
||||||
./epiphany.nix
|
./epiphany.nix
|
||||||
|
./fontconfig.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./gnome-feeds.nix
|
./gnome-feeds.nix
|
||||||
./gpodder.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 ];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user