mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
30 lines
534 B
Nix
30 lines
534 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.fonts.nerdfonts;
|
|
in
|
|
{
|
|
options.fonts.nerdfonts = {
|
|
enable = mkEnableOption "Enable nerdfonts";
|
|
additionalFonts = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [ ];
|
|
description = "Additional fonts to include in the nerdfonts package";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
fonts = {
|
|
packages = with pkgs; [
|
|
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ] ++ cfg.additionalFonts; })
|
|
];
|
|
};
|
|
};
|
|
}
|