-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 990 Bytes
/
check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Validate Nix Flake
on:
workflow_dispatch:
push:
paths:
- "**.nix"
- "flake.nix"
- "flake.lock"
- ".github/workflows/check.yaml"
jobs:
check-flake:
name: Check Flake Setup
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 1
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
- name: Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4
- name: Check Flake
# run: |
# NIXPKGS_ALLOW_INSECURE=1
# nix flake check
# --no-build
# --impure
# --show-trace
run: NIXPKGS_ALLOW_INSECURE=1 nix flake check --no-build --accept-flake-config --impure