-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path_nixos-rebuild
33 lines (29 loc) · 1.31 KB
/
_nixos-rebuild
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
33
#compdef nixos-rebuild
#autoload
_nix-common-options
local -a _1st_arguments
_1st_arguments=(
'switch:Build, activate, and update boot default'
'boot:Build and update boot default without activating'
'test:Build and activate without updating boot default'
'build:Build without activating or updating boot default'
'dry-build:Show what store paths would be built or downloaded without building'
'dry-activate:Build and show what changes would be performed by the activation'
'build-vm:Create a script which starts a VM with the built configuration'
'build-vm-with-bootloader:Like build-vm, but boot using regular boot loader'
)
_arguments \
$__nix_common_nixos_rebuild \
'--upgrade[Fetch the latest version of NixOS from the NixOS channel]'\
'--upgrade-all[Fetch the latest version of all channels]'\
'--install-bootloader[(Re)install bootloader on the configured device]'\
"--no-build-nix[Don't build Nix package manager]"\
'--fast[Equivalent to --no-build-nix --show-trace]'\
'--rollback[Roll back to the previous configuration]'\
'(--profile-name -p)'{--profile-name,-p}'[Profile to use to track current and previous system configurations]:Profile:_nix_profiles'\
'1:: :->subcmds' && return 0
case $state in
subcmds)
_describe -t commands "nixos-rebuild subcommands" _1st_arguments
;;
esac