31 lines
438 B
Nix
31 lines
438 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.nixosModules.desktop.fonts;
|
||
|
in
|
||
|
{
|
||
|
options.nixosModules.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
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|