diff --git a/nixos/doc/manual/installation/installing.xml b/nixos/doc/manual/installation/installing.xml index e5fb95f7dcf..9cea2db610e 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 a3041ae22e7..acd69f18376 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).