about summary refs log tree commit diff stats
path: root/bootstrap
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-02 14:14:48 +0200
committerSoispha <soispha@vhack.eu>2023-07-10 16:44:22 +0200
commit9648ecf14a6cd15edace65747a1c053c5b501c50 (patch)
treee08e7b5d221c6ae3d3181b971515a2bfb47ff4b3 /bootstrap
parentFix(bootstrap): Don't wrap eev, as dash does not support exec (diff)
downloadnixos-config-9648ecf14a6cd15edace65747a1c053c5b501c50.tar.gz
nixos-config-9648ecf14a6cd15edace65747a1c053c5b501c50.zip
Fix(bootstrap): Use correct environment variable name
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/99_ensure_config_variables2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/99_ensure_config_variables b/bootstrap/99_ensure_config_variables
index b2ca9792..fa47a974 100755
--- a/bootstrap/99_ensure_config_variables
+++ b/bootstrap/99_ensure_config_variables
@@ -27,7 +27,7 @@ if ! [ "$NIX_ENVIRONMENT_VARIABLES_SET" ]; then
 
         export NIX_HOST="$host"
     fi
-    if ! [ "$NIX_DISK" ] && [ "$NIX_INSTALL" ]; then
+    if ! [ "$NIX_DISK" ] && [ "$INSTALL" ]; then
         available_disks="$(mktmp)"
         lsblk -J | jq '.[] | map(.name) | [foreach .[] as $item ({item: null, index: -1}; {$item, index: (.index + 1)})]' > "$available_disks"