-
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (28 loc) · 860 Bytes
/
fmt.yml
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
name: Check Flake Formatting
on:
workflow_dispatch:
pull_request:
paths:
- "**.nix"
- ".github/workflows/check.yml"
push:
paths:
- "**.nix"
- ".github/workflows/check.yml"
jobs:
cchecks:
name: Check expressions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
experimental-features = nix-command flakes
- run: |
nix run nixpkgs#alejandra -- \
--exclude ./flake-parts/default/packages/nicksfetch/generated.nix \
--exclude ./flake-parts/default/packages/anime4k/generated.nix \
--exclude ./flake-parts/default/packages/plymouth-themes/generated.nix -c .