2024-12-20 22:37:44 -05:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2024-12-20 16:07:12 -05:00
|
|
|
|
|
|
|
|
{
|
2024-12-20 22:37:44 -05:00
|
|
|
imports = [ ];
|
2024-12-20 16:07:12 -05:00
|
|
|
|
2025-10-11 00:08:02 -04:00
|
|
|
options.me = {
|
|
|
|
|
font.enable = lib.mkOption {
|
|
|
|
|
type = lib.types.bool;
|
|
|
|
|
default = false;
|
|
|
|
|
example = true;
|
|
|
|
|
description = "Whether we want to install font.";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config = lib.mkIf (config.me.font.enable && config.me.graphical) {
|
2025-01-23 19:48:25 -05:00
|
|
|
fonts = {
|
|
|
|
|
enableDefaultPackages = false;
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
cascadia-code
|
|
|
|
|
source-sans-pro
|
|
|
|
|
source-serif-pro
|
2025-09-13 17:02:22 -04:00
|
|
|
noto-fonts
|
2025-01-23 19:48:25 -05:00
|
|
|
noto-fonts-cjk-sans
|
|
|
|
|
noto-fonts-cjk-serif
|
|
|
|
|
noto-fonts-color-emoji
|
|
|
|
|
];
|
2024-12-20 16:07:12 -05:00
|
|
|
|
2025-01-23 19:48:25 -05:00
|
|
|
fontconfig = {
|
|
|
|
|
localConf = (builtins.readFile ./files/fonts.conf);
|
|
|
|
|
useEmbeddedBitmaps = true;
|
|
|
|
|
};
|
2024-12-20 16:07:12 -05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|