30 lines
430 B
Nix
30 lines
430 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.features.desktop.fonts;
|
|
in
|
|
{
|
|
options.features.desktop.fonts.enable = mkEnableOption "Enable fonts";
|
|
|
|
config = mkIf cfg.enable {
|
|
fonts = {
|
|
fontconfig = {
|
|
enable = true;
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
nerd-fonts.jetbrains-mono
|
|
nerd-fonts.meslo-lg
|
|
terminus_font
|
|
terminus_font_ttf
|
|
];
|
|
};
|
|
};
|
|
}
|