From c3e1e64e4c54ffa06d12be2c499c0acdfd9faf92 Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Thu, 15 Aug 2019 10:09:46 +0200 Subject: [PATCH] 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 --- nixos/doc/manual/installation/installing.xml | 6 +++--- nixos/modules/services/editors/emacs.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index e5fb95f7dcf0..9cea2db610e0 100644 --- a/nixos/doc/manual/installation/installing.xml +++ b/nixos/doc/manual/installation/installing.xml @@ -335,7 +335,7 @@ If you’re using the graphical ISO image, other editors may be available (such as vim). If you have network access, you can also install other editors — for instance, you can install Emacs by running - nix-env -i emacs. + nix-env -f '<nixpkgs>' -iA emacs. @@ -467,10 +467,10 @@ Retype new UNIX password: *** You may also want to install some software. For instance, -$ nix-env -qa \* +$ nix-env -qaP \* shows what packages are available, and -$ nix-env -i w3m +$ nix-env -f '<nixpkgs>' -iA w3m install the w3m browser. diff --git a/nixos/modules/services/editors/emacs.xml b/nixos/modules/services/editors/emacs.xml index a3041ae22e78..acd69f18376c 100644 --- a/nixos/modules/services/editors/emacs.xml +++ b/nixos/modules/services/editors/emacs.xml @@ -552,7 +552,7 @@ emacsclient --create-frame --tty # opens a new frame on the current terminal (NixOS), or run - nix-env -i pkgs.docbook5 + nix-env -f '<nixpkgs>' -iA docbook5 (Nix).