diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-06-14 18:30:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 18:30:35 +0200 |
commit | ff905cb796d255638aad3589c0c8ed8bca013059 (patch) | |
tree | 966ed84c1798b0508450c81888264560ac0edab3 /doc | |
parent | 61a3e1f2e2a368af122b24e929abe05d0d43266f (diff) | |
parent | 0101ce0d9630ee62b2c96800dbcd42fba7c0bf6e (diff) |
Merge pull request #4803 from ShamrockLee/nix-channel-list-generations
Add `nix-channel --list-generations`
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/src/command-ref/nix-channel.md | 11 | ||||
-rw-r--r-- | doc/manual/src/release-notes/rl-next.md | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/doc/manual/src/command-ref/nix-channel.md b/doc/manual/src/command-ref/nix-channel.md index a210583ae..025f758e7 100644 --- a/doc/manual/src/command-ref/nix-channel.md +++ b/doc/manual/src/command-ref/nix-channel.md @@ -4,7 +4,7 @@ # Synopsis -`nix-channel` {`--add` url [*name*] | `--remove` *name* | `--list` | `--update` [*names…*] | `--rollback` [*generation*] } +`nix-channel` {`--add` url [*name*] | `--remove` *name* | `--list` | `--update` [*names…*] | `--list-generations` | `--rollback` [*generation*] } # Description @@ -39,6 +39,15 @@ This command has the following operations: for `nix-env` operations (by symlinking them from the directory `~/.nix-defexpr`). + - `--list-generations`\ + Prints a list of all the current existing generations for the + channel profile. + + Works the same way as + ``` + nix-env --profile /nix/var/nix/profiles/per-user/$USER/channels --list-generations + ``` + - `--rollback` \[*generation*\]\ Reverts the previous call to `nix-channel --update`. Optionally, you can specify a specific channel generation diff --git a/doc/manual/src/release-notes/rl-next.md b/doc/manual/src/release-notes/rl-next.md index 78ae99f4b..bde9057c6 100644 --- a/doc/manual/src/release-notes/rl-next.md +++ b/doc/manual/src/release-notes/rl-next.md @@ -1,2 +1,3 @@ # Release X.Y (202?-??-??) +- [`nix-channel`](../command-ref/nix-channel.md) now supports a `--list-generations` subcommand |