name: Build & Push on: push: branches: - main jobs: build: strategy: matrix: host: ["othalan", "algiz"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v25 # v25 with: nix_path: nixpkgs=channel:nixos-unstable - uses: DeterminateSystems/magic-nix-cache-action@v2 - uses: cachix/cachix-action@v14 with: name: daylin authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - name: Build run: nix build '.#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel' - name: Push env: CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}" run: cachix push daylin ./result