mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 05:53:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  pkgs,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
let
 | 
						|
  cfg = config.nmasur.presets.fonts;
 | 
						|
in
 | 
						|
{
 | 
						|
 | 
						|
  options.nmasur.presets.fonts.enable = lib.mkEnableOption "Font configuration";
 | 
						|
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
 | 
						|
    home.packages = [
 | 
						|
      pkgs.nerd-fonts.victor-mono # Used for Vim and Terminal
 | 
						|
      pkgs.nerd-fonts.hack # For Polybar, Rofi
 | 
						|
    ];
 | 
						|
    fonts.fontconfig = {
 | 
						|
      enable = true;
 | 
						|
      defaultFonts.monospace = [ "Victor Mono" ];
 | 
						|
    };
 | 
						|
 | 
						|
    xsession.windowManager.i3.config.fonts = {
 | 
						|
      names = [ "pango:Victor Mono" ];
 | 
						|
      # style = "Regular";
 | 
						|
      # size = 11.0;
 | 
						|
    };
 | 
						|
    services.polybar.config."bar/main".font-0 = "Hack Nerd Font:size=10;2";
 | 
						|
    programs.rofi.font = "Hack Nerd Font 14";
 | 
						|
    programs.alacritty.settings.font.normal.family = "VictorMono";
 | 
						|
    programs.kitty.font.name = "VictorMono Nerd Font Mono";
 | 
						|
    nmasur.presets.programs.wezterm.font = "VictorMono Nerd Font Mono";
 | 
						|
    programs.ghostty.settings.font-family = "VictorMono Nerd Font Mono";
 | 
						|
    services.dunst.settings.global.font = "Hack Nerd Font 14";
 | 
						|
  };
 | 
						|
}
 |