diff --git a/scripts/NixOS/OS/setup.sh b/scripts/NixOS/OS/setup.sh index c9c7fccb..ed0f6208 100755 --- a/scripts/NixOS/OS/setup.sh +++ b/scripts/NixOS/OS/setup.sh @@ -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;