v3.23.2

Related Party Transactions (Details) - Schedule of notes payable - USD ($) | 9 Months Ended |
--- | --- | ---
Mar. 31, 2023 | Jun. 30, 2022 | Jun. 30, 2021
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable | $ 2,485,578 |  |
Current Portion of Related Party Notes Payable | 105,876 | $ 1,238,755 | $ 3,471,755
Long-term Portion of Related Party Notes Payable | 2,379,702 |  |
Long-term Note Payable to Related Party - 1 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables | 1,030,079 |  |
Long-term Note Payable to Related Party - 2 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables | 385,000 |  |
Long-term Note Payable to Related Party - 3 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables |  |  |
Long-term Note Payable to Related Party - 5 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables | 225,000 |  |
Long-term Note Payable to Related Party - 4 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Long term note bearing interest at 6% and maturing December 31, 2024 and other short-term payables due to stockholders and related parties | $ 845,499 |  |
Previously Reported [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable |  | 1,825,617 |
Current Portion of Related Party Notes Payable |  | 1,238,755 |
Long-term Portion of Related Party Notes Payable |  | 586,862 |
Previously Reported [Member] | Long-term Note Payable to Related Party - 1 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables |  | 1,030,079 |
Previously Reported [Member] | Long-term Note Payable to Related Party - 2 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables |  | 385,000 |
Previously Reported [Member] | Long-term Note Payable to Related Party - 3 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables |  | 55,000 |
Previously Reported [Member] | Long-term Note Payable to Related Party - 5 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Total Related Party Notes Payable and Other Payables |  |  |
Previously Reported [Member] | Long-term Note Payable to Related Party - 4 [Member] |  |  |
Related Party Transaction [Line Items] |  |  |
Long term note bearing interest at 6% and maturing December 31, 2024 and other short-term payables due to stockholders and related parties |  | $ 355,538 |

X
- Definition The amount of payable to related parties classified as other + References No definition available. + Details
Name: | gaxy_DueToOtherRelatedPartyCurrentAndNoncurrent
Namespace Prefix: | gaxy_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount for notes payable (written promise to pay), due to related parties. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer). + References No definition available. + Details
Name: | gaxy_RelatedPartyNotesPayable
Namespace Prefix: | gaxy_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount for notes payable (written promise to pay), due to related parties. + References No definition available. + Details
Name: | gaxy_TotalRelatedPartyNotesPayableAndOtherPayables
Namespace Prefix: | gaxy_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow associated with extending a long-term loan to a related party. Alternate caption: Payments for Advances to Affiliates. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 850 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483326/850-10-50-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 13 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-13 + Details
Name: | us-gaap_PaymentsToFundLongtermLoansToRelatedParties
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(2)(c)(2)(i)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483575/946-220-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(2)(c)(2)(ii)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483575/946-220-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(2)(g)(3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483575/946-220-S99-1 + Details
Name: | us-gaap_RelatedPartyTransactionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of borrowings from a creditor other than a bank with a maturity within one year or operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(13)(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(13)(a)(3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_ShortTermNonBankLoansAndNotesPayable
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gaxy_LongTermNotePayableToRelatedParty1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gaxy_LongTermNotePayableToRelatedParty2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gaxy_LongTermNotePayableToRelatedParty3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gaxy_LongtermNotePayableToRelatedParty5Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=gaxy_LongTermNotePayableToRelatedParty4Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RestatementAxis=srt_ScenarioPreviouslyReportedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |