summaryrefslogtreecommitdiffstats
path: root/nix-script-switch.sh
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-28 18:09:35 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-08-01 20:46:05 +0200
commite35ed772509c1026f2743c8290f297c809812a2c (patch)
tree7e5f87af4e2d812b22d1f6389b0a1648605930fb /nix-script-switch.sh
parenta9d4b7f153158e25d13d47a69edd63e60008dc93 (diff)
switch: Add RC_CONFIG as default config path
Diffstat (limited to 'nix-script-switch.sh')
-rwxr-xr-xnix-script-switch.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/nix-script-switch.sh b/nix-script-switch.sh
index 3359e32..d07bd87 100755
--- a/nix-script-switch.sh
+++ b/nix-script-switch.sh
@@ -9,10 +9,10 @@ COMMAND="switch"
usage() {
cat <<EOS
- $(help_synopsis "${BASH_SOURCE[0]}" "[-h] [-c <command>] -w <working directory> [-- args...]")
+ $(help_synopsis "${BASH_SOURCE[0]}" "[-h] [-c <command>] [-w <working directory>] [-- args...]")
-c <command> Command for nixos-rebuild. See 'man nixos-rebuild' (default: switch)
- -w <path> Path to your configuration git directory
+ -w <path> Path to your configuration git directory (default: '$RC_CONFIG')
-n DON'T include hostname in tag name
-t <tagname> Custom tag name
-p <pkgs> Generate the switch tag in the nixpkgs at <pkgs> as well.
@@ -49,7 +49,7 @@ EOS
COMMAND=
ARGS=
-WD=
+WD=$RC_CONFIG
TAG_NAME=
HOSTNAME="$(hostname)"
NIXPKGS=""