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
Salt minion improvements #41977
Salt minion improvements #41977
Conversation
This makes system-wide packages available to the minion, which makes remote execution through Salt much more ergonomic.
]; | ||
path = [ | ||
(builtins.dirOf config.security.wrapperDir) | ||
] ++ config.environment.profiles; |
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.
I haven't seen environment.profiles
being used like this, but it seems like a good solution
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.
One thing:
You might want to consider reversing the list. The way this list seems to work is that the most specific thing comes last. Thats why reversing it when creating a PATH
might be a good idea.
See: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/environment.nix#L58
@aneeshusa Can you do the thing mentioned by @andir? I can then merge it |
Hmm, to me it looks like the list is already ordered from specific to less specific: nixpkgs/nixos/modules/programs/environment.nix Lines 26 to 30 in f1fbf81
The way I decided to use nixpkgs/nixos/modules/config/shells-environment.nix Lines 17 to 20 in f1fbf81
That code is invoked for nixpkgs/nixos/modules/programs/environment.nix Lines 33 to 34 in f1fbf81
|
Hmm, I'm questioning this way of adding to PATH now. A user could also just set Maybe it would be better to just mention in the option description how users can add some packages to PATH for salt-minion (via |
Those are reasonable concerns, so going to close this. The other two useful commits are now included in #48499. |
Motivation for this change
Review commit by commit.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)