Skip to content

magic nix cache

magic nix cache #4

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
gen-matrix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
paths: |
/nix/store
~/.cache/nix
~root/.cache/nix
- run: nix --accept-flake-config --extra-experimental-features 'flakes nix-command' path-info --derivation .#nixosConfigurations.adama.config.system.build.toplevel