Skip to content

Expose the mkTools in the configs main flake #29

Expose the mkTools in the configs main flake

Expose the mkTools in the configs main flake #29

Workflow file for this run

name: Nix CI
on:
push:
paths:
- '**/*.nix'
pull_request:
paths:
- '**/*.nix'
workflow_dispatch:
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Check nix flake
run: nix flake check
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install nixfmt and format .nix files
run: nix-shell -p nixfmt-rfc-style --command "find . -name '*.nix' -print0 | xargs -0 nixfmt"
- name: Commit and push formatted files
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git diff --cached --quiet || git commit -m "Auto-format Nix files"
git push