mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-15 21:08:21 +00:00
Adds GITHUB_TOKEN
due to rate limiting
This commit is contained in:
parent
78e10ac43f
commit
dbddb3a1a6
2 changed files with 8 additions and 2 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -21,7 +21,6 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
nix-channel --add https://nixos.org/channels/nixpkgs-20.09-darwin nixpkgs
|
nix-channel --add https://nixos.org/channels/nixpkgs-20.09-darwin nixpkgs
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
echo "FIXME workaround channel permission error"
|
|
||||||
- run: |
|
- run: |
|
||||||
export NIX_PATH=$HOME/.nix-defexpr/channels
|
export NIX_PATH=$HOME/.nix-defexpr/channels
|
||||||
nix-shell -A installer
|
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
|
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210207_fd6eaa1/install
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
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: |
|
- run: |
|
||||||
nix registry add darwin $PWD
|
nix registry add darwin $PWD
|
||||||
nix build ./modules/examples#darwinConfigurations.simple.system
|
nix build ./modules/examples#darwinConfigurations.simple.system
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
description = "Example darwin system flake";
|
description = "Example darwin system flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-20.09-darwin";
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||||||
darwin.url = "github:lnl7/nix-darwin";
|
darwin.url = "github:lnl7/nix-darwin";
|
||||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue