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

README.rst: add Nix instructions #142

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

Conversation

tomodachi94
Copy link

There are two primary ways to install Zsh plugins with Nix:

  • Home-Manager
  • NixOS

Home-Manager provides a friendly way to install plugins.

NixOS does not, so we resort to appending to the
interactiveShellInit option.

There are two primary ways to install Zsh plugins with Nix:
* Home-Manager
* NixOS

Home-Manager provides a friendly way to install plugins.

NixOS does not, so we resort to appending to the
interactiveShellInit option.
programs.zsh.interactiveShellInit = ''
source ${pkgs.zsh-you-should-use}/share/zsh/plugins/you-should-use/you-should-use.plugin.zsh
'';
}
Copy link
Owner

Choose a reason for hiding this comment

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

I dont use these so I dont know how to confirm this myself 🤔 Do you have a suggestion how I can verify these instructions? maybe I can run it within a docker container?

Copy link
Author

Choose a reason for hiding this comment

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

For Home-Manager, you should be able to use the Nix container and install a standalone installation of HM. From there, include the provided snippet in your configuration (.config/home-manager/home.nix), then run home-manager switch.

The NixOS instructions are less easy to verify.

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