nixos/config: move nano to defaultPackages

Some people already have another editor installed and may want to
get rid of applications they don't use.

Changed files
+23 -6
nixos
doc
manual
release-notes
modules
+9
nixos/doc/manual/release-notes/rl-2105.xml
···
</programlisting>
</para>
</listitem>
</itemizedlist>
</section>
···
</programlisting>
</para>
</listitem>
+
<listitem>
+
<para>
+
<option>environment.defaultPackages</option> now includes the nano package.
+
If <package>pkgs.nano</package> is not added to the list,
+
make sure another editor is installed and the <literal>EDITOR</literal>
+
environment variable is set to it.
+
Environment variables can be set using <option>environment.variables</option>.
+
</para>
+
</listitem>
</itemizedlist>
</section>
+14 -6
nixos/modules/config/system-path.nix
···
pkgs.xz
pkgs.less
pkgs.libcap
-
pkgs.nano
pkgs.ncurses
pkgs.netcat
config.programs.ssh.package
···
];
defaultPackages = map (pkg: setPrio ((pkg.meta.priority or 5) + 3) pkg)
-
[ pkgs.perl
pkgs.rsync
pkgs.strace
];
···
default = defaultPackages;
example = literalExample "[]";
description = ''
-
Set of packages users expect from a minimal linux istall.
-
Like systemPackages, they appear in
-
/run/current-system/sw. These packages are
automatically available to all users, and are
automatically updated every time you rebuild the system
configuration.
-
If you want a more minimal system, set it to an empty list.
'';
};
···
pkgs.xz
pkgs.less
pkgs.libcap
pkgs.ncurses
pkgs.netcat
config.programs.ssh.package
···
];
defaultPackages = map (pkg: setPrio ((pkg.meta.priority or 5) + 3) pkg)
+
[ pkgs.nano
+
pkgs.perl
pkgs.rsync
pkgs.strace
];
···
default = defaultPackages;
example = literalExample "[]";
description = ''
+
Set of default packages that aren't strictly neccessary
+
for a running system, entries can be removed for a more
+
minimal NixOS installation.
+
+
Note: If <package>pkgs.nano</package> is removed from this list,
+
make sure another editor is installed and the
+
<literal>EDITOR</literal> environment variable is set to it.
+
Environment variables can be set using
+
<option>environment.variables</option>.
+
+
Like with systemPackages, packages are installed to
+
<filename>/run/current-system/sw</filename>. They are
automatically available to all users, and are
automatically updated every time you rebuild the system
configuration.
'';
};