summary refs log tree commit diff
path: root/nixos/modules/services/x11/desktop-managers/plasma5.nix
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-01-03 16:54:47 +0100
committerGitHub <noreply@github.com>2023-01-03 16:54:47 +0100
commit2bd27f69f7bedb05a8089d1d8c33bb0b43f39975 (patch)
treec4e5adb47e7e4549c8dde920c5e0681f822da0de /nixos/modules/services/x11/desktop-managers/plasma5.nix
parent298add347c2bbce14020fcb54051f517c391196b (diff)
parent3546fca5a4c4b550f0335d8fad920fd8abc89c2a (diff)
downloadnixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.tar
nixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.tar.gz
nixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.tar.bz2
nixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.tar.lz
nixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.tar.xz
nixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.tar.zst
nixpkgs-2bd27f69f7bedb05a8089d1d8c33bb0b43f39975.zip
Merge pull request #201951 from laalsaas/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 2bc0d2fe16e..eb30e601dd0 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;
@@ -401,7 +406,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" ];