Generate hardware config on installation

This commit is contained in:
Manuel Thalmann 2023-11-28 10:32:15 +01:00
parent b1cdf65e5a
commit 659b7e203f

View file

@ -16,6 +16,8 @@ configRoot="$NIXOS_MOUNT_ROOT/etc/nixos";
mkdir -p "$configRoot";
git clone "$NIXOS_CONFIG_REPOSITORY" "$configRoot";
hostname "$NIXOS_HOSTNAME";
cd "$configRoot";
nixos-generate-config --root "$NIXOS_MOUNT_ROOT" --show-hardware-config > "$configRoot/hardware-configuration.nix";
nixos-install;
popd > /dev/null;