diff --git a/hosts/desktop/shared-home.nix b/hosts/desktop/shared-home.nix index 74fcfcf..060b756 100644 --- a/hosts/desktop/shared-home.nix +++ b/hosts/desktop/shared-home.nix @@ -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'. diff --git a/modules/home-manager/programs/wezterm.nix b/modules/home-manager/programs/wezterm.nix index e6d1711..ffceafb 100644 --- a/modules/home-manager/programs/wezterm.nix +++ b/modules/home-manager/programs/wezterm.nix @@ -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; {