<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>457</ContextCount>
  <ElementCount>482</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>122</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>001 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ConsolidatedBalanceSheet</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>002 - Statement - Condensed Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ConsolidatedIncomeStatement</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>003 - Statement - Condensed Consolidated Statements of Operations (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ConsolidatedIncomeStatement_Parentheticals</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>004 - Statement - Consolidated Statement of Changes in Stockholders' Deficit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ShareholdersEquityType2or3</Role>
      <ShortName>Consolidated Statement of Changes in Stockholders' Deficit</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>005 - Statement - Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ConsolidatedCashFlow</Role>
      <ShortName>Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>007 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/PropertyandEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>008 - Disclosure - Lines of Credit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LinesofCredit</Role>
      <ShortName>Lines of Credit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>009 - Disclosure - Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/NotesPayable</Role>
      <ShortName>Notes Payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>010 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>011 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>012 - Disclosure - Lease Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LeaseAgreements</Role>
      <ShortName>Lease Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>013 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>014 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>015 - Disclosure - Commitments, Contingencies, and Concentrations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/CommitmentsContingenciesandConcentrations</Role>
      <ShortName>Commitments, Contingencies, and Concentrations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>016 - Disclosure - Material Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/MaterialAgreements</Role>
      <ShortName>Material Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>017 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/Acquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>018 - Disclosure - Stock Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/StockPlan</Role>
      <ShortName>Stock Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>019 - Disclosure - Going Concern</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/GoingConcern</Role>
      <ShortName>Going Concern</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>020 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>021 - Disclosure - Accounting Policies, by Policy (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/AccountingPoliciesByPolicy</Role>
      <ShortName>Accounting Policies, by Policy (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>022 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>023 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/PropertyandEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/PropertyandEquipment</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>024 - Disclosure - Notes Payable (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/NotesPayableTables</Role>
      <ShortName>Notes Payable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayable</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>025 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/FairValueMeasurements</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>026 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactions</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>027 - Disclosure - Lease Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LeaseAgreementsTables</Role>
      <ShortName>Lease Agreements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>028 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/Equity</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>029 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxes</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>030 - Disclosure - Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/AcquisitionsTables</Role>
      <ShortName>Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/Acquisitions</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>031 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>032 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of capital structure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofcapitalstructureTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of capital structure</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>033 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of contract assets and contract liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofcontractassetsandcontractliabilitiesTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of contract assets and contract liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>034 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of useful lives of property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofusefullivesofpropertyandequipmentTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of useful lives of property and equipment</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>035 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of goodwill and intangible assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofgoodwillandintangibleassetsTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of goodwill and intangible assets</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>036 - Disclosure - Property and Equipment (Details) - Schedule of property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofpropertyandequipmentTable</Role>
      <ShortName>Property and Equipment (Details) - Schedule of property and equipment</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>037 - Disclosure - Lines of Credit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LinesofCreditDetails</Role>
      <ShortName>Lines of Credit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LinesofCredit</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>038 - Disclosure - Notes Payable (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/NotesPayableDetails</Role>
      <ShortName>Notes Payable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>039 - Disclosure - Notes Payable (Details) - Schedule of long-term Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoflongtermNotesPayableTable</Role>
      <ShortName>Notes Payable (Details) - Schedule of long-term Notes Payable</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>040 - Disclosure - Notes Payable (Details) - Schedule of long-term Notes Payable (Parentheticals)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoflongtermNotesPayableTable_Parentheticals</Role>
      <ShortName>Notes Payable (Details) - Schedule of long-term Notes Payable (Parentheticals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>041 - Disclosure - Notes Payable (Details) - Schedule of future minimum principal payments on the non-related party long term notes payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoffutureminimumprincipalpaymentsonthenonrelatedpartylongtermnotespayableTable</Role>
      <ShortName>Notes Payable (Details) - Schedule of future minimum principal payments on the non-related party long term notes payable</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>042 - Disclosure - Fair Value Measurements (Details) - Schedule of fair values determined by level 3 inputs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/Scheduleoffairvaluesdeterminedbylevel3inputsTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of fair values determined by level 3 inputs</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>043 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/RelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>044 - Disclosure - Related Party Transactions (Details) - Schedule of notes payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofnotespayableTable</Role>
      <ShortName>Related Party Transactions (Details) - Schedule of notes payable</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>045 - Disclosure - Related Party Transactions (Details) - Schedule of notes payable (Parentheticals)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofnotespayableTable_Parentheticals</Role>
      <ShortName>Related Party Transactions (Details) - Schedule of notes payable (Parentheticals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>046 - Disclosure - Lease Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LeaseAgreementsDetails</Role>
      <ShortName>Lease Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreementsTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>047 - Disclosure - Lease Agreements (Details) - Schedule of operating lease right-of-use assets and operating lease liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofoperatingleaserightofuseassetsandoperatingleaseliabilitiesTable</Role>
      <ShortName>Lease Agreements (Details) - Schedule of operating lease right-of-use assets and operating lease liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreementsTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>048 - Disclosure - Lease Agreements (Details) - Schedule of operating lease maturities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofoperatingleasematuritiesTable</Role>
      <ShortName>Lease Agreements (Details) - Schedule of operating lease maturities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreementsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>049 - Disclosure - Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/EquityDetails</Role>
      <ShortName>Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>050 - Disclosure - Equity (Details) - Schedule of fair value of each equity-based award is estimated period</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoffairvalueofeachequitybasedawardisestimatedperiodTable</Role>
      <ShortName>Equity (Details) - Schedule of fair value of each equity-based award is estimated period</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>051 - Disclosure - Equity (Details) - Schedule of warrant status</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofwarrantstatusTable</Role>
      <ShortName>Equity (Details) - Schedule of warrant status</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>052 - Disclosure - Equity (Details) - Schedule of warrants outstanding</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofwarrantsoutstandingTable</Role>
      <ShortName>Equity (Details) - Schedule of warrants outstanding</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>053 - Disclosure - Income Taxes (Details) - Schedule of effective tax rate differed from federal statutory income tax rate</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofeffectivetaxratedifferedfromfederalstatutoryincometaxrateTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of effective tax rate differed from federal statutory income tax rate</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxesTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>054 - Disclosure - Income Taxes (Details) - Schedule of deferred tax assets and liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofdeferredtaxassetsandliabilitiesTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of deferred tax assets and liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxesTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>055 - Disclosure - Income Taxes (Details) - Schedule of significant components of deferred tax assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofsignificantcomponentsofdeferredtaxassetsTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of significant components of deferred tax assets</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxesTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>056 - Disclosure - Commitments, Contingencies, and Concentrations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/CommitmentsContingenciesandConcentrationsDetails</Role>
      <ShortName>Commitments, Contingencies, and Concentrations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/CommitmentsContingenciesandConcentrations</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>057 - Disclosure - Material Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/MaterialAgreementsDetails</Role>
      <ShortName>Material Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/MaterialAgreements</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>058 - Disclosure - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/AcquisitionsDetails</Role>
      <ShortName>Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/AcquisitionsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>059 - Disclosure - Acquisitions (Details) - Schedule of summarizes the allocation of the fair value of the assets as of the acquisition date through pushdown accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofsummarizestheallocationofthefairvalueoftheassetsasoftheacquisitiondatethroughpushdownaccountingTable</Role>
      <ShortName>Acquisitions (Details) - Schedule of summarizes the allocation of the fair value of the assets as of the acquisition date through pushdown accounting</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/AcquisitionsTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>060 - Disclosure - Stock Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/StockPlanDetails</Role>
      <ShortName>Stock Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/StockPlan</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>061 - Disclosure - Going Concern (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/GoingConcernDetails</Role>
      <ShortName>Going Concern (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/GoingConcern</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>062 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SubsequentEvents</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>063 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of capital structure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofcapitalstructureTable0</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of capital structure</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>064 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of contract assets and contract liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofcontractassetsandcontractliabilitiesTable0</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of contract assets and contract liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>065 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of goodwill and intangible assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofgoodwillandintangibleassetsTable0</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of goodwill and intangible assets</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>066 - Disclosure - Property and Equipment (Details) - Schedule of property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofpropertyandequipmentTable0</Role>
      <ShortName>Property and Equipment (Details) - Schedule of property and equipment</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>067 - Disclosure - Notes Payable (Details) - Schedule of long-term Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoflongtermNotesPayableTable0</Role>
      <ShortName>Notes Payable (Details) - Schedule of long-term Notes Payable</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>068 - Disclosure - Notes Payable (Details) - Schedule of long-term Notes Payable (Parentheticals)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoflongtermNotesPayableTable_Parentheticals0</Role>
      <ShortName>Notes Payable (Details) - Schedule of long-term Notes Payable (Parentheticals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>069 - Disclosure - Notes Payable (Details) - Schedule of future minimum principal payments on the long term notes payable to unrelated parties</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoffutureminimumprincipalpaymentsonthelongtermnotespayabletounrelatedpartiesTable</Role>
      <ShortName>Notes Payable (Details) - Schedule of future minimum principal payments on the long term notes payable to unrelated parties</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/NotesPayableTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>070 - Disclosure - Related Party Transactions (Details) - Schedule of notes payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofnotespayableTable0</Role>
      <ShortName>Related Party Transactions (Details) - Schedule of notes payable</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>071 - Disclosure - Related Party Transactions (Details) - Schedule of notes payable (Parentheticals)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofnotespayableTable_Parentheticals0</Role>
      <ShortName>Related Party Transactions (Details) - Schedule of notes payable (Parentheticals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>072 - Disclosure - Related Party Transactions (Details) - Schedule of related party notes payable maturities</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofrelatedpartynotespayablematuritiesTable</Role>
      <ShortName>Related Party Transactions (Details) - Schedule of related party notes payable maturities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/RelatedPartyTransactionsTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>073 - Disclosure - Lease Agreements (Details) - Schedule of under financing lease agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofunderfinancingleaseagreementsTable</Role>
      <ShortName>Lease Agreements (Details) - Schedule of under financing lease agreements</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreementsTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>074 - Disclosure - Lease Agreements (Details) - Schedule of financing lease maturities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoffinancingleasematuritiesTable</Role>
      <ShortName>Lease Agreements (Details) - Schedule of financing lease maturities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreementsTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>075 - Disclosure - Equity (Details) - Schedule of fair value of each equity-based award is estimated period</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleoffairvalueofeachequitybasedawardisestimatedperiodTable0</Role>
      <ShortName>Equity (Details) - Schedule of fair value of each equity-based award is estimated period</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>076 - Disclosure - Equity (Details) - Schedule of warrant status</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofwarrantstatusTable0</Role>
      <ShortName>Equity (Details) - Schedule of warrant status</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>077 - Disclosure - Equity (Details) - Schedule of warrants outstanding</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofwarrantsoutstandingTable0</Role>
      <ShortName>Equity (Details) - Schedule of warrants outstanding</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/EquityTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>078 - Disclosure - Income Taxes (Details) - Schedule of effective tax rate differed from the federal statutory income tax rate</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofeffectivetaxratedifferedfromthefederalstatutoryincometaxrateTable</Role>
      <ShortName>Income Taxes (Details) - Schedule of effective tax rate differed from the federal statutory income tax rate</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxesTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>079 - Disclosure - Income Taxes (Details) - Schedule of deferred tax assets and liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofdeferredtaxassetsandliabilitiesTable0</Role>
      <ShortName>Income Taxes (Details) - Schedule of deferred tax assets and liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxesTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="gaxy-20220930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>080 - Disclosure - Income Taxes (Details) - Schedule of significant components of deferred tax assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofsignificantcomponentsofdeferredtaxassetsTable0</Role>
      <ShortName>Income Taxes (Details) - Schedule of significant components of deferred tax assets</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/IncomeTaxesTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 56 fact(s) appearing in ix:hidden were eligible for transformation: gaxy:BearingInterestRate, gaxy:DebtTerm, gaxy:ExercisePrice, gaxy:Expiring, gaxy:ExpiringTerms, gaxy:InterestPercentage, gaxy:InvestorBearingInterest, gaxy:MaturityDate, gaxy:PrincipalAndInterest, gaxy:loweredInterestRate, us-gaap:ConversionOfStockSharesConverted1, us-gaap:DebtInstrumentInterestRateStatedPercentage, us-gaap:DebtInstrumentMaturityDate, us-gaap:EarningsPerShareDiluted, us-gaap:IncreaseDecreaseInNotesPayableCurrent, us-gaap:InterestPayableCurrent, us-gaap:NotesPayableCurrent -  gaxy-20220930.htm 7472, 7473, 7479, 7480, 7667, 7668, 7669, 7670, 7672, 7674, 7676, 7678, 7680, 7682, 7683, 7684, 7686, 7687, 7688, 7690, 7691, 7698, 7699, 7700, 7701, 7702, 7703, 7704, 7705, 7706, 7707, 7708, 7709, 7712, 7713, 7754, 7755, 7756, 7757, 7758, 7759, 7760, 7761, 7762, 7764, 7766, 7767, 7768, 7769, 7770, 7771, 7772, 7773, 7774, 7776, 7777</Log>
  </Logs>
  <InputFiles>
    <File doctype="S-1/A" original="gaxy-20220930.htm">gaxy-20220930.htm</File>
    <File>ex231.htm</File>
    <File>gaxy-20220930.xsd</File>
    <File>gaxy-20220930_cal.xml</File>
    <File>gaxy-20220930_def.xml</File>
    <File>gaxy-20220930_lab.xml</File>
    <File>gaxy-20220930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>auditorletter001.jpg</File>
    <File>auditorletter002.jpg</File>
    <File>auditorletter003.jpg</File>
    <File>gaxypic.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2022</BaseTaxonomy>
    <BaseTaxonomy items="1301">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="9">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
