mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: Add automatic formatting for .nix files
This commit is contained in:
parent
9dc9a1fe1b
commit
72d321f478
46 changed files with 3204 additions and 3164 deletions
6
.github/workflows/flake-checks.yaml
vendored
6
.github/workflows/flake-checks.yaml
vendored
|
|
@ -14,7 +14,9 @@ jobs:
|
|||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v3
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Check for dead code
|
||||
- name: Check for dead code in .nix files
|
||||
run: git ls-files '*.nix' | nix run nixpkgs#deadnix
|
||||
- name: Check for lints
|
||||
- name: Check for lints in .nix files
|
||||
run: nix run nixpkgs#statix -- check
|
||||
- name: Check formatting in .nix files
|
||||
run: git ls-files '*.nix' | xargs nix run nixpkgs#alejandra -- --check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue