workflow: fix cache for nixos and home
This commit is contained in:
parent
2f7ebbdcaf
commit
ffcb42f833
1 changed files with 3 additions and 2 deletions
|
@ -140,11 +140,12 @@ jobs:
|
|||
nix run github:zhaofengli/attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN"
|
||||
|
||||
- run: |
|
||||
nix build -L .#homeConfigurations."${{ matrix.home }}".activationPackage
|
||||
package=".#homeConfigurations."${{ matrix.home }}".activationPackage"
|
||||
nix build -L "$package"
|
||||
|
||||
- name: cache result
|
||||
run: |
|
||||
derivation="$(nix path-info --derivation "${{ matrix.home }}")"
|
||||
derivation="$(nix path-info --derivation "$package")"
|
||||
cache="$(nix-store --query --requisites --include-outputs "$derivation")"
|
||||
nix run github:zhaofengli/attic push main --stdin <<< "$cache"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue