Nix flake configuration for my various machines (clients and homelab servers)
0

Configure Feed

Select the types of activity you want to include in your feed.

ci falls back to source build when cache.sub0.net is down

Parthiv Krishna (Jun 21, 2026, 9:49 PM -0700) 26b8574a 6fedffee

+6 -4
+6 -4
.github/workflows/nixos-build.yaml
··· 25 25 extra-conf: | 26 26 build-dir = /nix/build 27 27 extra-platforms = aarch64-linux 28 - extra-substituters = https://cache.flox.dev?priority=30 ssh-ng://nix-cache@cache.sub0.net?priority=50 29 - extra-trusted-public-keys = flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs= cache.sub0.net-1:x8wTeYCstMWT0jwzccBr3IT8V2DXqRKu8k/KUv5nW4Q= 28 + extra-substituters = https://cache.flox.dev?priority=30 29 + extra-trusted-public-keys = flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs= 30 + fallback = true 31 + connect-timeout = 5 30 32 - name: Load SSH private key for secrets repo 31 33 uses: webfactory/ssh-agent@v0.9.0 32 34 with: ··· 46 48 hostname: ci-${{ matrix.host }}-${{ github.run_id }} 47 49 - name: Build configuration 48 50 run: | 49 - nix build --no-link .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel 51 + nix build --fallback --no-link .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel 50 52 - name: Push to cache 51 53 continue-on-error: true 52 54 run: | 53 55 path=$(nix path-info .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel) 54 - nix copy --to ssh-ng://nix-cache@cache.sub0.net $path 56 + nix copy --to ssh-ng://nix-cache@cache.sub0.net "$path" 55 57 ssh nix-cache@cache.sub0.net "nix-store --add-root /nix/var/nix/gcroots/cache/${{ matrix.host }} -r $path"