determinatesystems/Nix Flake Checker
Check your `flake.lock` files for common problems like outdated Nixpkgs releases.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| flake-lock-path | The path to the `flake.lock` file you want to check. | — | flake.lock |
| condition | A Common Expression Language (CEL) condition expressing your flake policy. Supersedes all `check-*` parameters. | no | — |
| check-outdated | Whether to check that the root Nixpkgs input is less than 30 days old. | — | true |
| check-owner | Whether to check that the root Nixpkgs input has the `NixOS` GitHub org as its owner. | — | true |
| check-supported | Whether to check that the root Nixpkgs input has a supported Git ref. Currently supported refs: `nixos-22.11`, `nixos-22.11-small`, `nixos-23.05`, `nixos-23.05-small`, `nixos-unstable`, `nixos-unstable-small`, `nixpkgs-22.11-darwin`, `nixpkgs-23.05-darwin`, `nixpkgs-unstable`. | — | true |
| ignore-missing-flake-lock | Whether to ignore a missing `flake.lock` file, where the path to the file is the value of `flake-lock-path` parameter. If set to `false` (the default is `true`), the Action throws an error and the job fails if the lockfile is missing. | — | true |
| nixpkgs-keys | The names of the Nixpkgs inputs you want to check. By default the checker only checks the `nixpkgs` but you can specify multiple names as a comma-separated list, such as `nixpkgs,nixpkgs-macos,nixpkgs-unstable`. | — | nixpkgs |
| fail-mode | Fail with an exit code of 1 if any issues are encountered. | — | false |
| send-statistics | Anonymously report the number of issues detected by the Nix Flake Checker. This reporting helps measure (and thereby improve) the effectiveness of the checker. Set to `false` to disable. | — | true |
| source-binary | Run a version of flake-checker from somewhere already on disk. Intended only for testing the Action. | no | — |
| _internal-strict-mode | Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows. | no | false |
Outputs
no outputs