diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-07-31 15:43:25 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-31 15:43:25 +0200 |
commit | 1d0a7b54fa330b041a720932ee4e05dcad1d2d5c (patch) | |
tree | 48627a3530e4d6d58c612864b2e99afb11a0a902 /doc/manual/src/command-ref/nix-channel.md | |
parent | 0c94c176446bd9e9cb8c7e16fb7c6d88bb4e9a20 (diff) |
Enable syntax highlighting
Diffstat (limited to 'doc/manual/src/command-ref/nix-channel.md')
-rw-r--r-- | doc/manual/src/command-ref/nix-channel.md | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/doc/manual/src/command-ref/nix-channel.md b/doc/manual/src/command-ref/nix-channel.md index ea3a57e69..f0e205967 100644 --- a/doc/manual/src/command-ref/nix-channel.md +++ b/doc/manual/src/command-ref/nix-channel.md @@ -51,20 +51,24 @@ The list of subscribed channels is stored in `~/.nix-channels`. To subscribe to the Nixpkgs channel and install the GNU Hello package: - $ nix-channel --add https://nixos.org/channels/nixpkgs-unstable - $ nix-channel --update - $ nix-env -iA nixpkgs.hello +```console +$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable +$ nix-channel --update +$ nix-env -iA nixpkgs.hello +``` You can revert channel updates using `--rollback`: - $ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' - "14.04.527.0e935f1" +```console +$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' +"14.04.527.0e935f1" - $ nix-channel --rollback - switching from generation 483 to 482 +$ nix-channel --rollback +switching from generation 483 to 482 - $ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' - "14.04.526.dbadfad" +$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' +"14.04.526.dbadfad" +``` # Files |