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/config: move nano to defaultPackages #97565
Conversation
I just noticed typos in the option description, should I just amend these to this pr or open a new one? diff --git a/nixos/modules/config/system-path.nix b/nixos/modules/config/system-path.nix
index e317a3a1ced..b366db2dfc9 100644
--- a/nixos/modules/config/system-path.nix
+++ b/nixos/modules/config/system-path.nix
@@ -74,7 +74,7 @@ in
default = defaultPackages;
example = literalExample "[]";
description = ''
- Set of packages users expect from a minimal linux istall.
+ Set of packages users expect from a minimal Linux install.
Like systemPackages, they appear in
/run/current-system/sw. These packages are
automatically available to all users, and are |
Thanks!
you can use this |
@@ -1050,7 +1050,7 @@ services.transmission.settings.rpc-bind-address = "0.0.0.0"; | |||
</listitem> | |||
<listitem> | |||
<para> | |||
The option <option>defaultPackages</option> was added. It installs the packages <package>perl</package>, <package>rsync</package> and <package>strace</package> for now. They were added unconditionally to <option>systemPackages</option> before, but are not strictly necessary for a minimal NixOS install. You can set it to an empty list to have a more minimal system. Be aware that some functionality might still have an impure dependency on those packages, so things might break. | |||
The option <option>defaultPackages</option> was added. It installs the packages <package>nano</package>, <package>perl</package>, <package>rsync</package> and <package>strace</package> for now. They were added unconditionally to <option>systemPackages</option> before, but are not strictly necessary for a minimal NixOS install. You can set it to an empty list to have a more minimal system. Be aware that some functionality might still have an impure dependency on those packages, so things might break. |
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.
this has to go in the changelog of 21.03 (which might not exist yet)
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.
Can't we just backport this pr? Nano is still installed by default, so this shouldn't affect any setups.
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.
Yes, we could.
I want that defaultPackages can really be set to empty without causing any issues, so i would like more testing on unstable...
In this case it might be ok.
I have micro installed and use it most of the time, but git still opens nano. I haven't made the effort to change that yet. Have you tested for example such a case? And there might be edgecases like with rsync and nixops.
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 agree with @davidak - I'm a big fan of removing packages causing side effects but let's keep this in unstable
to bake for the next 6 months... we'll catch most issues that way.
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.
Thanks for the thorough answers. I didn't think about the edge cases, so stabilizing this first makes sense, I'll update the pr.
Also, can someone proofread the release notes? English isn't my first language.
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'm also not a native speaker, but i see no issue. Thanks!
127e949
to
522a916
Compare
In the last force-push I've rewritten the option description and added a note about installing another editor and setting the corresponding environment variable. |
522a916
to
6a8b103
Compare
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.
not tested, but looks good
Some people already have another editor installed and may want to get rid of applications they don't use.
6a8b103
to
e6cd793
Compare
@davidak I've fixed the merge conflict and improved some of the wording, can you take another look and merge if it looks good? |
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.
Looks good!
This should not cause any issue. Maybe when someone set's the option to empty list, it could cause unexpected behavior.
If this causes bigger issues, it can get reverted before the release.
Result of 2 packages blacklisted:
|
Result of 1 test built:
|
Motivation for this change
Some people already have another editor installed and may want to get rid of applications they don't use.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)