summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-07-04 10:52:45 +0200
committertv <tv@shackspace.de>2015-07-04 10:52:45 +0200
commit9c2bc5b4d0c6a87d5902eea3c3838d28dfe89a85 (patch)
treeb1619b86ed7808185dadf106f13d715498027750
parentcc31863564d996c182f7ede432711be87066fa41 (diff)
nixos-build: s/host/system_name/
-rwxr-xr-xbin/nixos-build12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/nixos-build b/bin/nixos-build
index 235d7c1f6..3e902fd08 100755
--- a/bin/nixos-build
+++ b/bin/nixos-build
@@ -1,19 +1,19 @@
#! /bin/sh
#
-# build : hostname -> system-path
+# nixos-build system_name -> system_path
#
set -euf
-host=$1
+system_name=$1
-NIXOS_CONFIG=$config_root/modules/$host
+NIXOS_CONFIG=$config_root/modules/$system_name
export NIXOS_CONFIG
# Notice how host's NIX_PATH is used to prefetch nixpkgs.
-prefetch nixpkgs "$nixpkgs_root/$host"
+prefetch nixpkgs "$nixpkgs_root/$system_name"
-NIX_PATH=$nixpkgs_root/$host
-NIX_PATH=$NIX_PATH:secrets=$secrets_root/$host/nix
+NIX_PATH=$nixpkgs_root/$system_name
+NIX_PATH=$NIX_PATH:secrets=$secrets_root/$system_name/nix
NIX_PATH=$NIX_PATH:pubkeys=$config_root/pubkeys
NIX_PATH=$NIX_PATH:retiolum-hosts=$retiolum_hosts
export NIX_PATH