summary refs log tree commit diff
path: root/nixos/modules/services/x11/desktop-managers/plasma5.nix
diff options
context:
space:
mode:
authorlaalsaas <laalsaas@systemli.org>2022-11-21 13:29:39 +0100
committerlaalsaas <laalsaas@systemli.org>2022-12-17 01:17:17 +0100
commit3546fca5a4c4b550f0335d8fad920fd8abc89c2a (patch)
treeba3a814cb79b2af93ce699b09330d7c49b7363ea /nixos/modules/services/x11/desktop-managers/plasma5.nix
parent34e2d794504188864c28c6e94c6083ce96bb1dca (diff)
downloadnixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.tar
nixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.tar.gz
nixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.tar.bz2
nixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.tar.lz
nixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.tar.xz
nixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.tar.zst
nixpkgs-3546fca5a4c4b550f0335d8fad920fd8abc89c2a.zip
plasma5: add notoPackage option
Some users don't want all >190 Noto fonts.
Diffstat (limited to 'nixos/modules/services/x11/desktop-managers/plasma5.nix')
-rw-r--r--nixos/modules/services/x11/desktop-managers/plasma5.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix
index 44faa19bc22..112c7e7a922 100644
--- a/nixos/modules/services/x11/desktop-managers/plasma5.nix
+++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix
@@ -32,7 +32,7 @@ let
   inherit (lib)
     getBin optionalString literalExpression
     mkRemovedOptionModule mkRenamedOptionModule
-    mkDefault mkIf mkMerge mkOption types;
+    mkDefault mkIf mkMerge mkOption mkPackageOption types;
 
   ini = pkgs.formats.ini { };
 
@@ -198,6 +198,11 @@ in
       example = literalExpression "[ pkgs.plasma5Packages.oxygen ]";
     };
 
+    notoPackage = mkPackageOption pkgs "Noto fonts" {
+      default = [ "noto-fonts" ];
+      example = "noto-fonts-lgc-plus";
+    };
+
     # Internally allows configuring kdeglobals globally
     kdeglobals = mkOption {
       internal = true;
@@ -396,7 +401,7 @@ in
       # Enable GTK applications to load SVG icons
       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 = {
         monospace = [ "Hack" "Noto Sans Mono" ];
         sansSerif = [ "Noto Sans" ];