This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/home/modules/shell/wezterm/default.nix

44 lines
1 KiB
Nix
Raw Normal View History

2024-03-30 23:02:26 -05:00
{ config
, pkgs
, lib
, ...
}:
with lib; let
cfg = config.myHome.shell.wezterm;
in
{
options.myHome.shell.wezterm = {
enable = mkEnableOption "wezterm";
configPath = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
# xdg.configFile."wezterm/wezterm.lua".source = config.lib.file.mkOutOfStoreSymlink cfg.configPath;
2024-03-31 05:40:20 -05:00
programs.wezterm.package = pkgs.unstable.wezterm;
2024-03-30 23:02:26 -05:00
programs.wezterm = {
enable = true;
2024-03-31 05:40:20 -05:00
extraConfig = ''
local wez = require('wezterm')
return {
-- issue relating to nvidia drivers
-- https://github.com/wez/wezterm/issues/2011
-- had to build out 550.67 manually to 'fix'
enable_wayland = true,
2024-03-31 05:40:20 -05:00
color_scheme = "Dracula (Official)",
check_for_updates = false,
window_background_opacity = .90,
window_padding = {
left = '2cell',
right = '2cell',
top = '1cell',
2024-04-07 21:09:00 -05:00
bottom = '0cell',
2024-03-31 05:40:20 -05:00
},
}
'';
2024-03-30 23:02:26 -05:00
};
};
}