fix: rewrite nixos-setup as flat minimal install/rescue script #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/DeterminateSystems/flake-checker-action | |
| name: Flake Checker | |
| on: | |
| push: | |
| branches: [ main, master ] # Run on every push to primary branches | |
| pull_request: | |
| branches: [ main, master ] # Run on all incoming pull requests | |
| workflow_dispatch: # Allows manual run from the Actions UI | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true # Kill previous runs if a new commit is pushed | |
| jobs: | |
| flake-checker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 # Clones repo to access flake.lock | |
| - name: Check Nix flake health | |
| uses: DeterminateSystems/flake-checker-action@main | |
| with: | |
| fail-mode: true # Exit with error if flake is unhealthy | |
| send-report: true # Post a visual health summary in the CI logs | |
| # Explicitly pointing to the lockfile ensures the action | |
| # doesn't waste time searching for it | |
| flake-lock-path: ./flake.lock |