From 34f32ffa04282dcafc3c418f6da9ee455437e89f Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 15 Sep 2023 11:20:50 -0400 Subject: [PATCH] flake: use garnix cache; gh action to use the same --- .github/workflows/ci.yaml | 4 ++-- flake.nix | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c20bc668..d09a97d0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,6 +13,6 @@ jobs: - name: Install Nix uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix build --no-link --print-out-paths .#e2e-playwright-test + - run: nix --accept-flake-config build --no-link --print-out-paths .#e2e-playwright-test - name: E2E tests - run: nix run .#e2e-playwright-test + run: nix --accept-flake-config run .#e2e-playwright-test diff --git a/flake.nix b/flake.nix index 69fe8ffb..7a96baf6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,10 @@ { description = "WIP: nix-browser"; + nixConfig = { + # https://garnix.io/docs/caching + extra-substituters = "https://cache.garnix.io"; + extra-trusted-public-keys = "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="; + }; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; flake-parts.url = "github:hercules-ci/flake-parts";