speed up push
Some checks failed
Check Flake / check-flake (push) Failing after 5m19s

This commit is contained in:
2026-02-19 21:43:16 -08:00
parent 44e7db3229
commit 5be30cbc7c
2 changed files with 8 additions and 13 deletions

View File

@@ -18,19 +18,16 @@ jobs:
- name: Check Flake - name: Check Flake
run: nix flake check --all-systems --print-build-logs --log-format raw --show-trace run: nix flake check --all-systems --print-build-logs --log-format raw --show-trace
- name: Debug
env:
ATTIC_ENDPOINT_VAR: ${{ vars.ATTIC_ENDPOINT }}
ATTIC_TOKEN_VAR: ${{ secrets.ATTIC_TOKEN }}
run: |
echo "Endpoint length: ${#ATTIC_ENDPOINT_VAR}"
echo "Token length: ${#ATTIC_TOKEN_VAR}"
- name: Push to cache - name: Push to cache
env: env:
XDG_CONFIG_HOME: ${{ runner.temp }}/.config XDG_CONFIG_HOME: ${{ runner.temp }}/.config
run: | run: |
attic login local "${{ vars.ATTIC_ENDPOINT }}" "${{ secrets.ATTIC_TOKEN }}" attic login local "${{ vars.ATTIC_ENDPOINT }}" "${{ secrets.ATTIC_TOKEN }}"
nix eval .#nixosConfigurations --apply 'cs: map (n: "${cs.${n}.config.system.build.toplevel}") (builtins.attrNames cs)' --json \ # Get all system toplevel store paths
| jq -r '.[]' \ toplevels=$(nix eval .#nixosConfigurations --apply 'cs: map (n: "${cs.${n}.config.system.build.toplevel}") (builtins.attrNames cs)' --json | jq -r '.[]')
| xargs attic push nixos # Expand to full closures, deduplicate, and filter out paths already
# signed by cache.nixos.org — only our custom builds need caching
echo "$toplevels" \
| xargs nix path-info -r --json \
| jq -r '[.[] | select((.signatures // []) | all(startswith("cache.nixos.org") | not)) | .path] | unique[]' \
| xargs attic push local:nixos 1>/dev/null

View File

@@ -7,12 +7,10 @@
"https://cache.nixos.org/" "https://cache.nixos.org/"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"http://s0.koi-bebop.ts.net:28338/nixos" "http://s0.koi-bebop.ts.net:28338/nixos"
# "http://s0.koi-bebop.ts.net:5000"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixos:SnTTQutdOJbAmxo6AQ3cbRt5w9f4byMXQODCieBH3PQ=" "nixos:SnTTQutdOJbAmxo6AQ3cbRt5w9f4byMXQODCieBH3PQ="
# "s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU="
]; ];
# Allow substituters to be offline # Allow substituters to be offline