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
Add configuration params for oh-my-zsh #25140
Conversation
I would prefer to have a dedicated module and an own scope for oh my zsh (so |
nixos/modules/programs/zsh/zsh.nix
Outdated
@@ -143,6 +174,26 @@ in | |||
|
|||
${cfge.interactiveShellInit} | |||
|
|||
${optionalString (cfg.enableOhMyZsh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In an external module this would be then moved to: programs.zsh.interactiveShellInit
good point. |
…rams.zsh.oh-my-zsh
@Mic92 done. |
Thanks! |
thanks for merging :-) Just out of interest: the current |
* programs.zsh: add enableOhMyZsh option to automate setup of oh-my-zsh in global zshrc * programs.zsh: make oh-my-zsh plugins configurable * programs.zsh: add ohMyZshCustom option * programs.zsh: add ohMyZshTheme option * programs.zsh: applying minor fixes to evaluate expressions properly * programs.zsh: fix ordering of oh-my-zsh config and execution * programs.zsh: move all oh-my-zsh params into its own scope named programs.zsh.oh-my-zsh (cherry picked from commit 9ec64d2)
* programs.zsh: add enableOhMyZsh option to automate setup of oh-my-zsh in global zshrc * programs.zsh: make oh-my-zsh plugins configurable * programs.zsh: add ohMyZshCustom option * programs.zsh: add ohMyZshTheme option * programs.zsh: applying minor fixes to evaluate expressions properly * programs.zsh: fix ordering of oh-my-zsh config and execution * programs.zsh: move all oh-my-zsh params into its own scope named programs.zsh.oh-my-zsh (cherry picked from commit 9ec64d2)
Motivation for this change
After switching to NixOS I decided to create a global ZSH profile for each of the users based on oh-my-zsh.
Unfortunately I had to set a lot of params manually using
interactiveShellInit
. This PR aims to makeoh-my-zsh
configuration easier by adding some params to be used inconfiguration.nix
.I tested it by using the following configuration in a test VM:
When starting the VM (which was created by running
NIXOS_CONFIG=`pwd`/vmtest.nix nixos-rebuild -I nixpkgs=$HOME/Projects/nixpkgs/ build-vm
) everything worked fine.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)