mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
27 lines
559 B
Nix
27 lines
559 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;
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|