aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src/command-ref/nix-channel.md
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-24 12:56:19 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-24 12:56:19 +0200
commit758c9ee1bb0e9d4bea420420af93e0128fabf188 (patch)
tree006550d0c3eab47099c17602cb6a03b476195417 /doc/manual/src/command-ref/nix-channel.md
parent8d0b311a1ccd0aef49c6f272aad4ecb5105b285a (diff)
Clean up the manpages
Diffstat (limited to 'doc/manual/src/command-ref/nix-channel.md')
-rw-r--r--doc/manual/src/command-ref/nix-channel.md36
1 files changed, 7 insertions, 29 deletions
diff --git a/doc/manual/src/command-ref/nix-channel.md b/doc/manual/src/command-ref/nix-channel.md
index 0c20788f0..6b4bd2459 100644
--- a/doc/manual/src/command-ref/nix-channel.md
+++ b/doc/manual/src/command-ref/nix-channel.md
@@ -1,34 +1,12 @@
-nix-channel
+Title: nix-channel
-1
+# Name
-Nix
+`nix-channel` - manage Nix channels
-nix-channel
+# Synopsis
-manage Nix channels
-
-nix-channel
-
-\--add
-
-url
-
-name
-
-\--remove
-
-name
-
-\--list
-
-\--update
-
-names
-
-\--rollback
-
-generation
+`nix-channel` {`--add` url [*name*] | `--remove` *name* | `--list` | `--update` [*names…*] | `--rollback` [*generation*] }
# Description
@@ -82,10 +60,10 @@ You can revert channel updates using `--rollback`:
$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
"14.04.527.0e935f1"
-
+
$ nix-channel --rollback
switching from generation 483 to 482
-
+
$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
"14.04.526.dbadfad"