mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 12:20:04 +00:00
28 lines
734 B
Nix
28 lines
734 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
self,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf mkOption;
|
|
inherit (self) namespace;
|
|
|
|
cfg = config.${namespace}.system.fonts;
|
|
in {
|
|
options.${namespace}.system.fonts = with lib.types; {
|
|
enable = mkEnableOption "system font management";
|
|
fonts = mkOption {
|
|
type = listOf package;
|
|
default = with pkgs; [noto-fonts noto-fonts-cjk-sans noto-fonts-cjk-serif noto-fonts-emoji nerd-fonts.bigblue-terminal nerd-fonts.zed-mono monocraft];
|
|
example = [noto-fonts noto-fonts-emoji];
|
|
description = "Install additional font packages";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [font-manager];
|
|
|
|
fonts.packages = cfg.fonts;
|
|
};
|
|
}
|