diff --git a/.github/workflows/generators.yml b/.github/workflows/generators.yml index 1cfc27b..cbc03ee 100644 --- a/.github/workflows/generators.yml +++ b/.github/workflows/generators.yml @@ -63,3 +63,43 @@ jobs: - name: "Build: .#mishi-raw-efi" run: | nix build .#mishy-raw-efi + + stashy: + runs-on: ubuntu-latest + steps: + - name: Maximize build space + uses: AdityaGarg8/remove-unwanted-software@v4.1 + with: + verbose: 'true' + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' + remove-large-packages: 'true' + remove-cached-tools: 'true' + remove-swapfile: 'true' + # Derivations are built under /tmp + - name: Bind mount /tmp + run: | + sudo mkdir /mnt/nix /nix + sudo chmod 0755 /nix + sudo mount --bind /mnt/nix /nix + # - name: Set swap space + # uses: pierotofy/set-swap-space@master + # with: + # swap-size-gb: 10 + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + extra_nix_config: "extra-platforms = aarch64-linux" + - name: Clone Repository + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: "Build: .#stashy-sd" + run: | + nix build .#stashy-sd diff --git a/.github/workflows/machines.yml b/.github/workflows/machines.yml index 91689dd..08cd798 100644 --- a/.github/workflows/machines.yml +++ b/.github/workflows/machines.yml @@ -53,3 +53,21 @@ jobs: - name: "Build: .#clawsiecats-luks" run: | nix build .#nixosConfigurations.clawsiecats-luks.config.system.build.toplevel + + stashy: + runs-on: ubuntu-latest + steps: + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + extra_nix_config: "extra-platforms = aarch64-linux" + - name: Clone Repository + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: "Build: .#stashy" + run: | + nix build .#nixosConfigurations.stashy.config.system.build.toplevel diff --git a/machines/mishy/default.nix b/machines/mishy/default.nix index a5c57d0..1dc5ca4 100644 --- a/machines/mishy/default.nix +++ b/machines/mishy/default.nix @@ -449,6 +449,7 @@ }; boot.kernelPackages = pkgs.linuxPackages_latest; + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.tmp = { useTmpfs = true; cleanOnBoot = true;