1{
2 pkgs,
3 config,
4 ...
5}:
6{
7 settings.terminal.name = "wezterm";
8 home.packages = [ pkgs.wezterm ];
9 xdg.enable = true;
10 xdg.configFile = {
11 "wezterm/wezterm.lua".text = ''
12 local wezterm = require 'wezterm';
13 local catppuccin = require("colors/catppuccin").setup {
14 -- whether or not to sync with the system's theme
15 sync = false,
16 -- the default/fallback flavour, when syncing is disabled
17 flavour = "mocha"
18 }
19
20 return {
21 font = wezterm.font("${config.settings.font.regular.name}"),
22 font_size = ${builtins.toJSON config.settings.font.regular.size},
23 default_cursor_style = "BlinkingBar",
24 enable_wayland = true,
25 enable_tab_bar = false,
26 colors = catppuccin,
27 window_background_opacity = 0.85
28 }
29 '';
30 "wezterm/colors/catppuccin.lua".source = builtins.fetchurl {
31 url = "https://raw.githubusercontent.com/catppuccin/wezterm/65078e846c8751e9b4837a575deb0745f0c0512f/catppuccin.lua";
32 sha256 = "sha256:0cm8kjjga9k1fzgb7nqjwd1jdjqjrkkqaxcavfxdkl3mw7qiy1ib";
33 };
34 };
35}