ci: debug (wip) try to prevent gc with nix profiles
Flake checks / Check (pull_request) Successful in 21m5s Details

teutat3s 2024-04-23 14:12:45 +02:00
parent ef85796bc9
commit 231e4261ae
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 3 additions and 8 deletions

View File

@ -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