plasma5: add notoPackage option
Some users don't want all >190 Noto fonts.
This commit is contained in:
parent
34e2d79450
commit
3546fca5a4
@ -32,7 +32,7 @@ let
|
|||||||
inherit (lib)
|
inherit (lib)
|
||||||
getBin optionalString literalExpression
|
getBin optionalString literalExpression
|
||||||
mkRemovedOptionModule mkRenamedOptionModule
|
mkRemovedOptionModule mkRenamedOptionModule
|
||||||
mkDefault mkIf mkMerge mkOption types;
|
mkDefault mkIf mkMerge mkOption mkPackageOption types;
|
||||||
|
|
||||||
ini = pkgs.formats.ini { };
|
ini = pkgs.formats.ini { };
|
||||||
|
|
||||||
@ -198,6 +198,11 @@ in
|
|||||||
example = literalExpression "[ pkgs.plasma5Packages.oxygen ]";
|
example = literalExpression "[ pkgs.plasma5Packages.oxygen ]";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
notoPackage = mkPackageOption pkgs "Noto fonts" {
|
||||||
|
default = [ "noto-fonts" ];
|
||||||
|
example = "noto-fonts-lgc-plus";
|
||||||
|
};
|
||||||
|
|
||||||
# Internally allows configuring kdeglobals globally
|
# Internally allows configuring kdeglobals globally
|
||||||
kdeglobals = mkOption {
|
kdeglobals = mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
@ -396,7 +401,7 @@ in
|
|||||||
# Enable GTK applications to load SVG icons
|
# Enable GTK applications to load SVG icons
|
||||||
services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
|
services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [ noto-fonts hack-font ];
|
fonts.fonts = with pkgs; [ cfg.notoPackage hack-font ];
|
||||||
fonts.fontconfig.defaultFonts = {
|
fonts.fontconfig.defaultFonts = {
|
||||||
monospace = [ "Hack" "Noto Sans Mono" ];
|
monospace = [ "Hack" "Noto Sans Mono" ];
|
||||||
sansSerif = [ "Noto Sans" ];
|
sansSerif = [ "Noto Sans" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user