Set the hostname before installing NixOS

This commit is contained in:
Manuel Thalmann 2023-11-28 01:45:49 +01:00
parent d54e818dc2
commit b1cdf65e5a

View file

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