From 72d5fb34a2c280614ddd01e14b92267f4b45a3d3 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Tue, 20 Aug 2024 17:48:58 +0800 Subject: [PATCH] Update github actions, in sync with nixpkgs-config --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f17726..eff234b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,6 @@ jobs: build: runs-on: ubuntu-latest env: - NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" steps: - uses: actions/checkout@v4 @@ -18,9 +17,14 @@ jobs: submodules: true - uses: cachix/install-nix-action@v22 with: - nix_path: nixpkgs=channel:nixos-unstable + nix_path: nixpkgs=channel:nixpkgs-unstable install_url: https://releases.nixos.org/nix/nix-2.23.3/install - extra_nix_config: "experimental-features = nix-command flakes fetch-closure" + extra_nix_config: | + experimental-features = nix-command flakes fetch-closure configurable-impure-env + impure-env = GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} + trusted-users = root runner @wheel + extra-substituters = https://nix-community.cachix.org + extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= - uses: cachix/cachix-action@v12 with: name: chezbryan