Set the hostname before installing NixOS

This commit is contained in:
Manuel Thalmann 2023-11-28 01:45:49 +01:00
parent 43366a2726
commit 9e41cdf270

View file

@ -15,6 +15,7 @@ OS_LABEL="${OS_LABEL}" \
configRoot="$NIXOS_MOUNT_ROOT/etc/nixos"; configRoot="$NIXOS_MOUNT_ROOT/etc/nixos";
mkdir -p "$configRoot"; mkdir -p "$configRoot";
git clone "$NIXOS_CONFIG_REPOSITORY" "$configRoot"; git clone "$NIXOS_CONFIG_REPOSITORY" "$configRoot";
hostname "$NIXOS_HOSTNAME";
nixos-install; nixos-install;
popd > /dev/null; popd > /dev/null;