ci: debug (wip) try to prevent gc with nix profiles
Flake checks / Check (pull_request) Successful in 21m5s
Details
Flake checks / Check (pull_request) Successful in 21m5s
Details
parent
ef85796bc9
commit
231e4261ae
|
@ -51,15 +51,10 @@ jobs:
|
|||
nix --print-build-logs --verbose --accept-flake-config --access-tokens '' flake check
|
||||
# Prevent cache garbage collection
|
||||
for target in $(nix flake show --json --all-systems | jq '
|
||||
["nixosConfigurations"] as $tops |
|
||||
$tops[] as $top |
|
||||
.[$top] |
|
||||
.["nixosConfigurations"] |
|
||||
to_entries[] |
|
||||
.key as $hostname |
|
||||
.value |
|
||||
keys[] |
|
||||
"\($top).\($hostname).config.system.build.toplevel"
|
||||
.key
|
||||
' | tr -d '"'
|
||||
); do
|
||||
nix profile install .#$target
|
||||
nix profile install --profile "/nix/var/nix/profiles/$target" ".#nixosConfigurations.${target}.config.system.build.toplevel"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue