<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>234</ContextCount>
  <ElementCount>334</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>87</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="gaxy05122022mar10q22.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="gaxy05122022mar10q22.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="gaxy05122022mar10q22.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="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>003 - Statement - Consolidated Statement of Changes in Stockholders' Equity (Deficit) (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ShareholdersEquityType2or3</Role>
      <ShortName>Consolidated Statement of Changes in Stockholders' Equity (Deficit) (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>004 - 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>5</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>005 - 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>6</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/PropertyandEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>007 - Disclosure - Lines of Credit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LinesofCredit</Role>
      <ShortName>Lines of Credit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>008 - Disclosure - Notes Payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://galaxynextgen.com/role/NotesPayable</Role>
      <ShortName>Notes Payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>009 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>010 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>011 - Disclosure - Lease Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/LeaseAgreements</Role>
      <ShortName>Lease Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>012 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>013 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>014 - 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>15</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>015 - Disclosure - Material Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/MaterialAgreements</Role>
      <ShortName>Material Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>016 - Disclosure - Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/Acquisition</Role>
      <ShortName>Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>017 - Disclosure - Stock Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/StockPlan</Role>
      <ShortName>Stock Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>018 - Disclosure - Going Concern</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/GoingConcern</Role>
      <ShortName>Going Concern</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>019 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>020 - 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>21</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>021 - 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>22</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>022 - 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>23</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>023 - 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>24</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>024 - 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>25</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>025 - 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>26</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>026 - 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>27</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>027 - 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>28</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>028 - Disclosure - Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/AcquisitionTables</Role>
      <ShortName>Acquisition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/Acquisition</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>029 - 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>30</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>030 - 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>31</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>031 - 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>32</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>032 - 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>33</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>033 - 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>34</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>034 - 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>35</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>035 - 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>36</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>036 - 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>37</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>037 - 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>38</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>038 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>039 - 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>40</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>040 - Disclosure - Fair Value Measurements (Details) - Schedule of derivative liability valued using monte carlo pricing model</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofderivativeliabilityvaluedusingmontecarlopricingmodelTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of derivative liability valued using monte carlo pricing model</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>041 - Disclosure - Fair Value Measurements (Details) - Schedule of reconciliation of changes in fair value of convertible debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofreconciliationofchangesinfairvalueofconvertibledebtTable</Role>
      <ShortName>Fair Value Measurements (Details) - Schedule of reconciliation of changes in fair value of convertible debt</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>042 - 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>43</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>043 - 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>44</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>044 - 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>45</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>045 - 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>46</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.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="gaxy05122022mar10q22.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="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>048 - Disclosure - Lease Agreements (Details) - Schedule of operating leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofoperatingleasesTable</Role>
      <ShortName>Lease Agreements (Details) - Schedule of operating leases</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/LeaseAgreementsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.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/Equity</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>050 - 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>51</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>051 - 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>52</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>052 - 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>53</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>053 - 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>54</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>054 - 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>55</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>055 - Disclosure - Acquisition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/AcquisitionDetails</Role>
      <ShortName>Acquisition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/AcquisitionTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>056 - Disclosure - Acquisition (Details) - Schedule of assets and liabilities as of the acquisition date through pushdown accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://galaxynextgen.com/role/ScheduleofassetsandliabilitiesasoftheacquisitiondatethroughpushdownaccountingTable</Role>
      <ShortName>Acquisition (Details) - Schedule of assets and liabilities as of the acquisition date through pushdown accounting</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://galaxynextgen.com/role/AcquisitionTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>057 - 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>58</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>058 - 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>59</Position>
    </Report>
    <Report instance="gaxy05122022mar10q22.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>059 - 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>60</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="gaxy05122022mar10q22.htm">gaxy05122022mar10q22.htm</File>
    <File>gaxy-20220331.xsd</File>
    <File>gaxy-20220331_cal.xml</File>
    <File>gaxy-20220331_def.xml</File>
    <File>gaxy-20220331_lab.xml</File>
    <File>gaxy-20220331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="624">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
