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
nixos/systemPackages: clean up #91213
Conversation
Well, why is this an improvement if the closure size isn't decreased? I assume that at least a perl is still in the closure for e.g. |
correct, but that changes hopefully in the future
it's cleaner when you have less. it don't really make sense to install these tools on any NixOS system it might decrease in other situations. like the build output shows 5.53 MiB might also save hydra builds and cache traffic |
Maybe even faster than expected #91353 |
Actually I am a bit surprised the |
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.
Sounds good. (but I haven't done any testing myself)
Fair enough. 👍 from me then :) |
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
yeah, me too. the worst part is that most of it is actually needed by nixos core tools like nixos-rebuild... implicitly |
Co-authored-by: 8573 <8573@users.noreply.github.com>
Maybe its not wise to blow up the scope of this pr, but two other packages which can probably be removed without trouble are |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
/marvin opt-in more changes go in another pr |
Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here. |
The PR author cannot set the status to If you are not the PR author and you are reading this, please review the usage of this bot. You may be able to help. Please make an honest attempt to resolve all outstanding issues before setting to |
there are already 4 reviews, but ok /status needs_reviewer |
I don't think removing |
as said above, that changes hopefully in the future
it is not needed for the system to run, so |
NixOS#91213 removed `perl` from $PATH. This adds a patch to oh-my-zsh, using `sed` instead of `perl` to do the regexp substitution.
They are no longer installed as part of the standard required packages since NixOS/nixpkgs#91213 I haven't been explicitly using perl for a while, so let's see how long I can go before I miss it.
This breaks NixOps, which assumes that |
So due to the big variety of broken things (the To avoid even more issues in the upcoming weeks I'd suggest to revert this patch, at least for 20.09. |
Gosh... it is impurities like these that convince me this change is a good idea. But I agree this should be reverted for |
We can introduce |
Check out my new PR: #97171 I hope that this resolves all concerns. |
readd perl (used in shell scripts), rsync (needed for NixOps) and strace (common debugging tool) they where previously removed in NixOS#91213 Co-authored-by: Timo Kaufmann <timokau@zoho.com> Co-authored-by: 8573 <8573@users.noreply.github.com>
readd perl (used in shell scripts), rsync (needed for NixOps) and strace (common debugging tool) they where previously removed in NixOS#91213 Co-authored-by: Timo Kaufmann <timokau@zoho.com> Co-authored-by: 8573 <8573@users.noreply.github.com> (cherry picked from commit 74b3d66)
readd perl (used in shell scripts), rsync (needed for NixOps) and strace (common debugging tool) they where previously removed in NixOS#91213 Co-authored-by: Timo Kaufmann <timokau@zoho.com> Co-authored-by: 8573 <8573@users.noreply.github.com>
readd perl (used in shell scripts), rsync (needed for NixOps) and strace (common debugging tool) they where previously removed in NixOS#91213 Co-authored-by: Timo Kaufmann <timokau@zoho.com> Co-authored-by: 8573 <8573@users.noreply.github.com> Co-authored-by: davidak <git@davidak.de> Co-authored-by: Timo Kaufmann <timokau@zoho.com> Co-authored-by: 8573 <8573@users.noreply.github.com>
Previously this worked because rsync was included in NixOS by default, not anymore the case with NixOS/nixpkgs#91213
Motivation for this change
clean up unneeded packages, reduce NixOS closure size
in detail:
Things done
sandbox
innix.conf
on non-NixOS linux)ran some random tests
tests.login.x86_64-linux
tests.env.x86_64-linux
nix-build nixos/tests/installer.nix Killed because it needs more than 40 GB RAM
nix-build nixos/tests/misc.nix
nix-build nixos/tests/boot.nix
nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)the closure size is not different:
the difference: