-
Notifications
You must be signed in to change notification settings - Fork 114
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: extra arguments for Home Manager #507
Conversation
@NovaViper Here is a buiid for |
Hey sorry for the delay! I just got around to setting up NixOS again, however I can't figure out how to get the package working because of a cargo hash mismatch.. I'm unsure of how to resolve it because the cargo lock itself hasn't changed but I think the updates made in the main branch in the last few days may have changed it? my override settings
The error
|
Emm, I know that NixOS is immutable, but do you have to test it via nix? Downloading the binary and executing it should work? |
That did it! I ran it with the binrary and it did input the arguments into the command but did it in such a way that it made the script crash with this error:
My Configuration
Also I do have a suggestion real quick, would it be possible to move the home manager arguments line to be under the linux settings instead of misc? Would make sense since the nix arguments are under that category |
Not familiar with nix, seems the error is complaining about that "--flake" and "./Desktop/nix-config" should be two arguments instead of one. Executing "home-manager switch --flake ./Desktop/nix-config" in your shell will work, right? And, suggestion received:) |
Executing the command with it surrounded by
Thank you! 👍🏾 |
Would u like to try this in your shell: $ home-manager switch '--flake' './Desktop/nix-config' And, from your configuration file, it seems $ nix some-command '--flake ./Desktop/nix-config' kinda weird... |
This works!
Actually, when I run it like this |
Then the configuration entry should be an array of string:
|
New build: https://github.com/SteveLauC/topgrade/releases/tag/home-manager-extra-args @NovaViper Welcome to give it a try:) |
EDIT EDIT 2 |
Huh, one pecuilar thing is now when I run it also, it runs the oh-my-zsh script instead of zplug (even though I don't have oh-my-zsh, I run zplug instead) |
Would you like to elaborate on this? I don't quite get it :< |
Ah wait, this also happens with the latest version (v12.0.1). It seems like the commands thinks my system is running the oh-my-zsh framework since I'm using ZSH; but I'm actually running Zplug (oh-my-zsh isn't installed on my system at all). So it should be running the zplug step instead of the oh-my-zsh one. |
I get it. Would you like to provide the output of
and
here |
And, for this oh-my-zsh issue, opening another issue for it would be great. Since this patch solves your problem, I will merge it. |
Standards checklist:
CONTRIBUTING.md
cargo build
)cargo fmt
)cargo clippy
)cargo test
)If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.
What does this PR do