dotfiles/modules/system/fonts/default.nix

24 lines
375 B
Nix
Raw Normal View History

2023-03-12 03:59:11 +00:00
{
options,
config,
pkgs,
lib,
...
}:
with lib; let
2023-05-28 02:25:52 +00:00
cfg = config.aa.system.fonts;
2023-03-12 03:59:11 +00:00
in {
2023-05-28 02:25:52 +00:00
options.aa.system.fonts = with types; {
2023-03-12 03:59:11 +00:00
enable = mkEnableOption "manage fonts";
};
config = mkIf cfg.enable {
2023-08-05 03:51:15 +00:00
fonts.packages = with pkgs; [
2023-06-05 05:15:19 +00:00
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
2023-03-12 03:59:11 +00:00
(nerdfonts.override {fonts = ["Hack"];})
];
};
}