rose-pine-nix/modules/home-manager/wezterm.nix
punkfairie 870f2fe63e
feat(wezterm): Add Wezterm config
This config does require the user to format their configuration in a
specific way:
```lua
local config = wezterm.config_builder()

-- config here...

return config
```

Since this is the format that the official documentation uses in
examples, most users probably follow suit. But worth pointing out
regardless.
2024-11-04 20:57:30 -08:00

15 lines
458 B
Nix

{ config, lib, ... }:
let
cfg = config.programs.wezterm.rose-pine;
enable = cfg.enable && config.programs.wezterm.enable;
in
{
options.programs.wezterm.rose-pine = lib.rp.mkRosePineOpt { name = "wezterm"; };
config.programs.wezterm.extraConfig = lib.mkIf enable ''
local theme = wezterm.plugin.require('https://github.com/neapsix/wezterm').${cfg.flavor}
config.colors = theme.colors()
config.window_frame = theme.window_frame()
'';
}