dogfood nixcp
This commit is contained in:
parent
de4797cf06
commit
35638117ab
1 changed files with 12 additions and 20 deletions
28
.github/workflows/build-machines-and-homes.yml
vendored
28
.github/workflows/build-machines-and-homes.yml
vendored
|
@ -76,16 +76,12 @@ jobs:
|
||||||
if: '!cancelled()'
|
if: '!cancelled()'
|
||||||
run: |
|
run: |
|
||||||
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"
|
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"
|
||||||
derivations=()
|
nix profile install git+https://git.cy7.sh/cy/nixcp.git
|
||||||
while IFS=$'\n' read derivation; do
|
nixcp \
|
||||||
derivations+=("$derivation")
|
|
||||||
done < <(nix path-info --derivation "$package")
|
|
||||||
|
|
||||||
for derivation in "${derivations[@]}"; do
|
|
||||||
nix copy -j8 \
|
|
||||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||||
$(nix-store --query --requisites --include-outputs "$derivation")
|
-u https://nix-community.cachix.org \
|
||||||
done
|
-u https://nixcache.cy7.sh \
|
||||||
|
$package
|
||||||
|
|
||||||
build-homes:
|
build-homes:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -153,13 +149,9 @@ jobs:
|
||||||
if: '!cancelled()'
|
if: '!cancelled()'
|
||||||
run: |
|
run: |
|
||||||
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
||||||
derivations=()
|
nix profile install git+https://git.cy7.sh/cy/nixcp.git
|
||||||
while IFS=$'\n' read derivation; do
|
nixcp \
|
||||||
derivations+=("$derivation")
|
|
||||||
done < <(nix path-info --derivation "$package")
|
|
||||||
|
|
||||||
for derivation in "${derivations[@]}"; do
|
|
||||||
nix copy -j8 \
|
|
||||||
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
--to 's3://nixcache?endpoint=s3.cy7.sh&secret-key=/home/runner/cache-priv-key.pem' \
|
||||||
$(nix-store --query --requisites --include-outputs "$derivation")
|
-u https://nix-community.cachix.org \
|
||||||
done
|
-u https://nixcache.cy7.sh \
|
||||||
|
$package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue