Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(home-manager): add support for wezterm #433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taranarmo
Copy link

This adds support for WezTerm theme. There are no specific option fo themes in the wezterm home-manager module so I used extraConfig.

Copy link
Member

@isabelroses isabelroses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My suggestions do depend on a catppuccin wezterm package.

modules/home-manager/wezterm.nix Outdated Show resolved Hide resolved
modules/home-manager/wezterm.nix Outdated Show resolved Hide resolved
modules/home-manager/wezterm.nix Show resolved Hide resolved
@taranarmo taranarmo force-pushed the add-wezterm-home-manager branch from 989e1fa to b72c8b5 Compare December 30, 2024 12:54
Copy link
Member

@isabelroses isabelroses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using config.catppuccin.sources.wezterm will require a package, take a look at https://github.com/catppuccin/nix/blob/main/CONTRIBUTING.md.

@taranarmo taranarmo force-pushed the add-wezterm-home-manager branch from b72c8b5 to e8d22ad Compare December 30, 2024 14:03
@taranarmo taranarmo force-pushed the add-wezterm-home-manager branch 6 times, most recently from c441571 to 9512a18 Compare December 30, 2024 16:09
@taranarmo
Copy link
Author

Eventually with help of search engines and chatbots I was able to make it working. I replaced require with dofile which solved the issue.

Copy link
Member

@isabelroses isabelroses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall, LGTM.

@isabelroses isabelroses requested a review from getchoo December 30, 2024 19:44
@taranarmo taranarmo force-pushed the add-wezterm-home-manager branch from 68ae54c to cf0402a Compare December 31, 2024 10:24
@taranarmo taranarmo force-pushed the add-wezterm-home-manager branch from cf0402a to 6be9577 Compare December 31, 2024 10:34
@taranarmo
Copy link
Author

Rebased and resolved conflicts

@taranarmo taranarmo force-pushed the add-wezterm-home-manager branch from 6be9577 to 6d1b11a Compare December 31, 2024 21:21
Comment on lines +16 to +23
extraConfig = lib.mkBefore ''
local config = {}
if wezterm.c_builder then
config = wezterm.config_builder()
end

dofile("${sources.wezterm}/plugin/init.lua").apply_to_config(config)
'';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about this, and how its a somewhat weird as an API for us to provide. Perhaps we should put this under a second option like options.catppuccin.wezterm.apply?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants