2024-03-31 21:11:40 +02:00
|
|
|
{ config, lib, materusArg, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.materus.profile.wezterm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.materus.profile.wezterm.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableDesktop "Enable materus wezterm config";
|
|
|
|
options.materus.profile.wezterm.enableHackFont = materusArg.pkgs.lib.mkBoolOpt true "Enable hack nerd font for wezterm";
|
2024-03-31 22:28:57 +02:00
|
|
|
options.materus.profile.wezterm.extraConfig = lib.mkOption {
|
|
|
|
default = "";
|
2024-03-31 21:11:40 +02:00
|
|
|
description = "Config for wezterm";
|
2024-03-31 22:49:39 +02:00
|
|
|
type = lib.types.lines;
|
2024-03-31 21:11:40 +02:00
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.wezterm.enable = true;
|
|
|
|
programs.wezterm.colorSchemes = { };
|
|
|
|
programs.wezterm.extraConfig = ''
|
|
|
|
|
2024-03-31 22:28:57 +02:00
|
|
|
package.path = package.path .. ";${materusArg.cfg.path}/extraFiles/config/wezterm/?.lua"
|
|
|
|
require("wezterm_config");
|
|
|
|
local config = materus_wezterm_config();
|
|
|
|
${cfg.extraConfig}
|
2024-03-31 21:11:40 +02:00
|
|
|
|
|
|
|
return config;
|
|
|
|
'';
|
|
|
|
|
|
|
|
home.packages = lib.mkIf cfg.enableHackFont [ (pkgs.nerdfonts.override { fonts = [ "Hack" ]; }) ];
|
|
|
|
};
|
|
|
|
}
|