From 08bc174280d3901669d095413ce114221440e4b5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 11 Jul 2015 15:27:17 +0200 Subject: Update README --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 62fd71f..d580d2c 100644 --- a/README.md +++ b/README.md @@ -33,23 +33,23 @@ nix-script diff-generations -s -n 114..115 Execute "nixos-rebuild switch" and tags the current checked-out commit in "/home/myself/nixos-configuration/" on successfull build (including -generation number). Default format for the tag name is +generation number). Format for the tag name is ```plain - nixos-- + nixos-[-]- ``` Where is the generation which was just build and is the command for nixos-rebuild, so either switch or test or... you get the point -You can, of course, override the tag name (no way to insert the generation -number by now) or the git command to use ('tag -a' be default). - ```bash nix-script switch -c switch -w /home/myself/nixos-configuration/ ``` +Add a `-n` to include the hostname into the tag name (usefull if you share +your configuration over several hosts, as I do). + You can also provide flags for 'nixos-rebuild' like so: (everything after the two dashes is appended to the nixos-rebuild command) @@ -57,6 +57,8 @@ You can also provide flags for 'nixos-rebuild' like so: nix-script switch -c switch -w /home/myself/conf -- -I nixpkgs=/home/myself/pkgs ``` +Dive into the code or use the `-h` flags for getting more help. + ## License This code is released under the terms of GNU GPL v2. -- cgit v1.2.3