diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-07-10 19:04:03 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-07-10 19:04:03 +0200 |
commit | 6f4e7814f474abf17b4a63f95818ca11d9f57c6f (patch) | |
tree | 5d7ef999364dd1516f016502b617593ce2663a7d | |
parent | 26a52d1416e7049ac2a959f0387e29f494f79a15 (diff) |
switch: Add more help text
-rwxr-xr-x | nix-script-switch.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nix-script-switch.sh b/nix-script-switch.sh index 9b25614..098d51f 100755 --- a/nix-script-switch.sh +++ b/nix-script-switch.sh @@ -17,11 +17,29 @@ usage() { -n Include hostname in tag name -h Show this help and exit + This command helps you rebuilding your system and keeping track + of the system generation in the git directory where your + configuration.nix lives. It generates a tag for each sucessfull + build of a system. So everytime you rebuild your system, this + script creates a tag for you, so you can revert your + configuration.nix to the generation state. + + Example usage: + + # To rebuild the system with "nixos-rebuild switch" (by -c + # switch), tag in /home/me/config and include the hostname + # in the tag as well (helpful if your configuration is + # shared between hosts). + # Verbosity is on here. + nix-script -v switch -c switch -w /home/me/config -n + Everything after a double dash (--) will be passed to nixos-rebuild as additional parameters. For example: nix-script switch -c switch -- -I nixpkgs=/home/user/pkgs + can be used to use your local clone of the nixpkgs repository. + $(help_end) EOS } |