Skip to content

Commit

Permalink
flake: add nix-community cache
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor committed Aug 2, 2024
1 parent 1d30c4c commit 1567a7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/check-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ jobs:
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
accept-flake-config = true
- run: nix flake check
3 changes: 2 additions & 1 deletion .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
accept-flake-config = true
- name: Reformat *.nix files
run: nix fmt
run: nix
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v21
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,14 @@
inherit specialArgs;
};
};

# Add nix community cache
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}

0 comments on commit 1567a7d

Please sign in to comment.