Skip to content

magic nix cache

magic nix cache #12

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
adama:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
with:
nix_conf: auto-optimise-store = true
- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-v3-adama-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-v3-adama-${{ 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
cain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
with:
nix_conf: auto-optimise-store = true
- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-v3-cain-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-v3-cain-${{ 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.cain.config.system.build.toplevel