Generate hardware config on installation

This commit is contained in:
Manuel Thalmann 2023-11-28 10:32:15 +01:00
parent 9e41cdf270
commit 1ba51897b6

View file

@ -16,6 +16,8 @@ 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"; hostname "$NIXOS_HOSTNAME";
cd "$configRoot";
nixos-generate-config --root "$NIXOS_MOUNT_ROOT" --show-hardware-config > "$configRoot/hardware-configuration.nix";
nixos-install; nixos-install;
popd > /dev/null; popd > /dev/null;