40 lines
946 B
Nix
40 lines
946 B
Nix
{ config
|
|
, pkgs
|
|
, lib
|
|
, ...
|
|
}:
|
|
with lib; let
|
|
cfg = config.myHome.shell.wezterm;
|
|
in
|
|
{
|
|
options.myHome.shell.wezterm = {
|
|
enable = mkEnableOption "wezterm";
|
|
configPath = mkOption {
|
|
type = types.str;
|
|
};
|
|
};
|
|
|
|
# Temporary make .config/wezterm/wezterm.lua link to the local copy
|
|
config = mkIf cfg.enable {
|
|
# xdg.configFile."wezterm/wezterm.lua".source = config.lib.file.mkOutOfStoreSymlink cfg.configPath;
|
|
programs.wezterm.package = pkgs.unstable.wezterm;
|
|
programs.wezterm = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
local wez = require('wezterm')
|
|
return {
|
|
|
|
color_scheme = "Dracula (Official)",
|
|
check_for_updates = false,
|
|
window_background_opacity = .90,
|
|
window_padding = {
|
|
left = '2cell',
|
|
right = '2cell',
|
|
top = '1cell',
|
|
bottom = '0cell',
|
|
},
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|