remove all instances of nix-env -i without -A in the NixOS manual
motivation: https://nixos.wiki/wiki/FAQ/Why_not_use_nix-env_-i_foo%3F
This commit is contained in:
parent
7a6c6ac374
commit
c3e1e64e4c
|
@ -335,7 +335,7 @@
|
||||||
If you’re using the graphical ISO image, other editors may be available
|
If you’re using the graphical ISO image, other editors may be available
|
||||||
(such as <command>vim</command>). If you have network access, you can also
|
(such as <command>vim</command>). If you have network access, you can also
|
||||||
install other editors — for instance, you can install Emacs by running
|
install other editors — for instance, you can install Emacs by running
|
||||||
<literal>nix-env -i emacs</literal>.
|
<literal>nix-env -f '<nixpkgs>' -iA emacs</literal>.
|
||||||
</para>
|
</para>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
@ -467,10 +467,10 @@ Retype new UNIX password: ***</screen>
|
||||||
<para>
|
<para>
|
||||||
You may also want to install some software. For instance,
|
You may also want to install some software. For instance,
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>$ </prompt>nix-env -qa \*</screen>
|
<prompt>$ </prompt>nix-env -qaP \*</screen>
|
||||||
shows what packages are available, and
|
shows what packages are available, and
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>$ </prompt>nix-env -i w3m</screen>
|
<prompt>$ </prompt>nix-env -f '<nixpkgs>' -iA w3m</screen>
|
||||||
install the <literal>w3m</literal> browser.
|
install the <literal>w3m</literal> browser.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
|
@ -552,7 +552,7 @@ emacsclient --create-frame --tty # opens a new frame on the current terminal
|
||||||
<xref linkend="opt-environment.systemPackages"/>
|
<xref linkend="opt-environment.systemPackages"/>
|
||||||
(<link
|
(<link
|
||||||
linkend="sec-declarative-package-mgmt">NixOS</link>), or run
|
linkend="sec-declarative-package-mgmt">NixOS</link>), or run
|
||||||
<literal>nix-env -i pkgs.docbook5</literal>
|
<literal>nix-env -f '<nixpkgs>' -iA docbook5</literal>
|
||||||
(<link linkend="sec-ad-hoc-packages">Nix</link>).
|
(<link linkend="sec-ad-hoc-packages">Nix</link>).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue