dotfiles/modules/nixos/graphical/fonts.nix

35 lines
866 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
2022-05-07 13:24:17 +00:00
2024-04-20 13:42:06 +00:00
let
fontName = "Victor Mono";
in
{
2022-04-30 16:32:00 +00:00
2022-12-21 21:18:03 +00:00
config = lib.mkIf (config.gui.enable && pkgs.stdenv.isLinux) {
2022-04-30 16:32:00 +00:00
fonts.packages = with pkgs; [
2022-05-07 13:36:07 +00:00
victor-mono # Used for Vim and Terminal
(nerdfonts.override { fonts = [ "Hack" ]; }) # For Polybar, Rofi
];
2022-05-07 13:24:17 +00: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 13:36:07 +00:00
services.polybar.config."bar/main".font-0 = "Hack Nerd Font:size=10;2";
programs.rofi.font = "Hack Nerd Font 14";
2022-06-20 03:44:29 +00:00
programs.alacritty.settings.font.normal.family = fontName;
programs.kitty.font.name = fontName;
services.dunst.settings.global.font = "Hack Nerd Font 14";
2022-05-07 13:24:17 +00:00
};
2022-04-30 16:32:00 +00:00
};
2022-04-29 02:25:05 +00:00
}