summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-11 14:05:53 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-13 17:35:54 +0200
commitf1a03addae88d985cbf9894377d429eab57c04bf (patch)
tree0cad145030dd995c5ff33bd6f4753329e0bae455 /nixos
parent2be774ccfa90696e6e798928c5cf253de38e9e00 (diff)
downloadnixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.tar
nixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.tar.gz
nixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.tar.bz2
nixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.tar.lz
nixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.tar.xz
nixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.tar.zst
nixpkgs-f1a03addae88d985cbf9894377d429eab57c04bf.zip
nixos-rebuild: Let --help invoke "man nixos-rebuild"
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/installer/tools/nixos-rebuild.sh39
1 files changed, 1 insertions, 38 deletions
diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh
index 0a199fb1542..6b747bc1a2b 100644
--- a/nixos/modules/installer/tools/nixos-rebuild.sh
+++ b/nixos/modules/installer/tools/nixos-rebuild.sh
@@ -1,44 +1,7 @@
 #! @shell@ -e
 
 showSyntax() {
-    # !!! more or less cut&paste from
-    # system/switch-to-configuration.sh (which we call, of course).
-    cat <<EOF
-Usage: $0 [OPTIONS...] OPERATION
-
-The operation is one of the following:
-
-  switch:   make the configuration the boot default and activate now
-  boot:     make the configuration the boot default
-  test:     activate the configuration, but don't make it the boot default
-  build:    build the configuration, but don't make it the default or
-            activate it
-  build-vm: build a virtual machine containing the configuration
-            (useful for testing)
-  build-vm-with-bootloader:
-            like build-vm, but include a boot loader in the VM
-  dry-run:  just show what store paths would be built/downloaded
-
-Options:
-
-  --upgrade              fetch the latest version of NixOS before rebuilding
-  --install-grub         (re-)install the Grub bootloader
-  --no-build-nix         don't build the latest Nix from Nixpkgs before
-                           building NixOS
-  --rollback             restore the previous NixOS configuration (only
-                           with switch, boot, test, build)
-  --profile-name / -p    install in the specified system profile
-  --fast                 same as --no-build-nix --show-trace
-
-Various nix-build options are also accepted, in particular:
-
-  --show-trace           show a detailed stack trace for evaluation errors
-
-Environment variables affecting nixos-rebuild:
-
-  \$NIX_PATH              Nix expression search path
-  \$NIXOS_CONFIG          path to the NixOS system configuration specification
-EOF
+    exec man nixos-rebuild
     exit 1
 }