ci: prevent flake inputs from GC as well
Flake checks / Check (pull_request) Failing after 5m26s
Details
Flake checks / Check (pull_request) Failing after 5m26s
Details
parent
60aef1d038
commit
852090d973
|
@ -58,4 +58,13 @@ jobs:
|
|||
nix --print-build-logs --verbose --accept-flake-config --access-tokens '' \
|
||||
build --out-link ./result-$target ".#nixosConfigurations.${target}.config.system.build.toplevel"
|
||||
done
|
||||
|
||||
nix --print-build-logs --verbose --accept-flake-config --access-tokens '' flake check
|
||||
|
||||
# Add GC roots for flake inputs, too
|
||||
# https://github.com/NixOS/nix/issues/4250#issuecomment-1146878407
|
||||
gc_root_prefix="/nix/var/nix/profiles/per-user/$USER/infra-flake-"
|
||||
echo "Adding gcroots flake inputs..."
|
||||
nix flake archive --json 2>/dev/null | jq -r '.inputs | to_entries[] | "ln -fsT "+.value.path+" \"'"$gc_root_prefix"'"+.key+"\""' | while read -r line; do
|
||||
eval "$line"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue