feat: fira code font on wezterm

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-01-07 17:36:50 -03:00
parent ac4493993c
commit d47c8cbe49
2 changed files with 17 additions and 14 deletions

View File

@@ -23,22 +23,20 @@
"electron-25.9.0"
];
home.packages = with pkgs; [
## Programs
obsidian
firefox
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
## Fonts
fira-code
];
fonts.fontconfig.enable = true;
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.

View File

@@ -16,18 +16,23 @@ in
defaultProg = lib.mkOption {
default = [ ];
};
font = lib.mkOption {
default = "Fira Code";
type = lib.types.str;
};
};
config = lib.mkIf cfg.enable {
programs.wezterm.enable = true;
programs.wezterm.enableZshIntegration = lib.mkIf (cfg.integration.zsh) true;
programs.wezterm.extraConfig = ''
return {
enable_tab_bar = false;
color_scheme = "${cfg.colorScheme}",
default_prog = { ${lib.concatMapStrings (x: "'" + x + "',") cfg.defaultProg} },
}
'';
return {
enable_tab_bar = false;
color_scheme = "${cfg.colorScheme}",
default_prog = { ${lib.concatMapStrings (x: "'" + x + "',") cfg.defaultProg} },
font = wezterm.font("${cfg.font}"),
}
'';
programs.wezterm.colorSchemes = {
system = with config.colorScheme.colors; {