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

refactor(home-configs)!: Modulized Home Configurations #4

Merged
merged 10 commits into from
Aug 31, 2024
Merged

Conversation

rennsax
Copy link
Owner

@rennsax rennsax commented Aug 31, 2024

To manage multiple variants of home configurations, two concepts are proposed:

  • Slot: The basis config of home variant. Each home variant composes only one (and must one) slot.
  • Plugin: Serves as addons for the home variant.

a home variant == 1 slot + 0 or more plugin(s)

Home configurations are divided into fine-grained modules.
Only when myModules.orbstack is enabled, the plugin "orb" is added to zsh plugins.
Plugin for zsh is enabled only if tmux is enabled.
- Move `myModules.zsh` to general (I love zsh!).
- iTerm2: add `enableInstall` option.
- Concentrate mini.nix. Only necessary configurations are included.
…f zsh-defer

- Drop zsh-defer, because it seems to be unnecessary and bring some troubles.
- Remove tmux plugin taken from oh-my-zsh, because it requires to be loaded
  after compinit, and currently it's hard to achieve.
- Move orb plugin to the orbstack module to manage it more easily. The orb
  plugin also requires to be loaded after compinit.
The new module emacs-libvterm replaces the old way of managing vterm shell
integration (as a Zsh plugin).

The shortcoming of using zsh plugin system: it's difficult to specify the order
of loading plugins, and the Nix logic is coupled with the Zsh init file's.

Vterm shell integration must be loaded after starship is loaded, so it can
hooked into the shell prompt.
@rennsax rennsax merged commit a40d0c6 into dev Aug 31, 2024
1 check passed
@rennsax rennsax changed the title Modulized Home Configurations refactor(home-configs)!: Modulized Home Configurations Aug 31, 2024
@rennsax rennsax deleted the home-configs branch August 31, 2024 05:52
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.

1 participant