blob: 6dc53c4b63fc963cb673faaeaa82d2a6a3b15f20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/env bash
source $(dirname ${BASH_SOURCE[0]})/nix-utils.sh
Color_Off='\e[0m'
Red='\e[0;31m'
usage() {
cat <<EOS >&2
$(help_synopsis "channel" "list-generations [-h]")
-h | Show this help and exit
$(help_end "channel")
EOS
}
while getopts "h" OPTION
do
case $OPTION in
h)
usage
exit 0
;;
*)
;;
esac
done
stdout "Done with argument parsing"
explain sudo nix-env -p /nix/var/nix/profiles/per-user/root/channels --list-generations
|