2022-05-07 09:24:17 -04:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let fontName = "Victor Mono";
|
|
|
|
|
|
|
|
in {
|
2022-04-30 12:32:00 -04:00
|
|
|
|
2022-05-05 23:01:56 -04:00
|
|
|
config = lib.mkIf config.gui.enable {
|
2022-04-30 12:32:00 -04:00
|
|
|
|
2022-05-07 09:36:07 -04:00
|
|
|
fonts.fonts = with pkgs; [
|
|
|
|
victor-mono # Used for Vim and Terminal
|
|
|
|
(nerdfonts.override { fonts = [ "Hack" ]; }) # For Polybar, Rofi
|
|
|
|
];
|
2022-05-07 09:24:17 -04:00
|
|
|
fonts.fontconfig.defaultFonts.monospace = [ fontName ];
|
|
|
|
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
xsession.windowManager.i3.config.fonts = {
|
|
|
|
names = [ "pango:${fontName}" ];
|
|
|
|
# style = "Regular";
|
|
|
|
# size = 11.0;
|
|
|
|
};
|
2022-05-07 09:36:07 -04:00
|
|
|
services.polybar.config."bar/main".font-0 = "Hack Nerd Font:size=10;2";
|
|
|
|
programs.rofi.font = "Hack Nerd Font 14";
|
2022-05-07 09:24:17 -04:00
|
|
|
};
|
2022-04-30 12:32:00 -04:00
|
|
|
|
|
|
|
};
|
2022-04-28 22:25:05 -04:00
|
|
|
|
|
|
|
}
|