From dbddb3a1a62f989bb92866b25369f71b89329ba5 Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Wed, 24 Mar 2021 20:46:18 +0100 Subject: [PATCH] Adds `GITHUB_TOKEN` due to rate limiting --- .github/workflows/test.yml | 8 +++++++- modules/examples/flake.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e716b926..5b9214a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,6 @@ jobs: - run: | nix-channel --add https://nixos.org/channels/nixpkgs-20.09-darwin nixpkgs nix-channel --update - echo "FIXME workaround channel permission error" - run: | export NIX_PATH=$HOME/.nix-defexpr/channels nix-shell -A installer @@ -45,6 +44,13 @@ jobs: install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210207_fd6eaa1/install extra_nix_config: | experimental-features = nix-command flakes + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - run: | + nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs + nix-channel --update + - run: | + export NIX_PATH=$HOME/.nix-defexpr/channels + nix-shell -A installer - run: | nix registry add darwin $PWD nix build ./modules/examples#darwinConfigurations.simple.system diff --git a/modules/examples/flake.nix b/modules/examples/flake.nix index c0d040b1..dcce3797 100644 --- a/modules/examples/flake.nix +++ b/modules/examples/flake.nix @@ -2,7 +2,7 @@ description = "Example darwin system flake"; inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-20.09-darwin"; + nixpkgs.url = "github:nixos/nixpkgs"; darwin.url = "github:lnl7/nix-darwin"; darwin.inputs.nixpkgs.follows = "nixpkgs"; };