16 lines
339 B
Nix
16 lines
339 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
# Define enable option
|
|
options.mySystem.desktop.fonts.enable =
|
|
lib.mkEnableOption "Enable nerd-fonts";
|
|
|
|
# Apply only if enabled
|
|
config = lib.mkIf (config.mySystem.desktop.fonts.enable or false) {
|
|
fonts.packages = with pkgs; [
|
|
nerd-fonts.iosevka
|
|
nerd-fonts.fira-code
|
|
];
|
|
};
|
|
}
|