mirror of
https://github.com/DeterminateSystems/flake-checker.git
synced 2024-08-16 17:40:22 +03:00
Health checks for your Nix flakes
.github/workflows | ||
src | ||
.editorconfig | ||
.envrc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
crane.nix | ||
flake.dirty.lock | ||
flake.lock | ||
flake.nix | ||
get-allowed-refs.sh | ||
README.md |
flake-checker
nix build
./result/bin/flake-checker
# Or point to an explicit path
./result/bin/flake-checker /path/to/flake.lock
Currently performs two checks:
- Checks that any explicit Nixpkgs Git refs are in this list:
nixos-22.11
nixos-22.11-small
nixos-unstable
nixos-unstable-small
nixpkgs-22.11-darwin
nixpkgs-unstable
- Checks that any Nixpkgs dependencies are less than 30 days old
Telemetry
The goal of the Determinate Flake Checker is to help teams stay on recent and supported versions of Nixpkgs. The flake checker collects a little bit of telemetry information to help us make that true.
Here is a table of the telemetry data we collect:
Field | Use |
---|---|
distinct_id |
An opaque string which represents your project, by sha256 hashing repository and organization details. |
version |
The version of the Determinate Flake Checker. |
is_ci |
Whether the installer is being used in CI (e.g. GitHub Actions). |
disallowed |
The number of inputs using unsupported branches of Nixpkgs. |
outdated |
The number of inputs using outdated versions of Nixpkgs. |
non_upstream |
The number of inputs using forks of Nixpkgs. |
To disable diagnostic reporting, set the diagnostics URL to an empty string by passing --no-telemetry
or setting FLAKE_CHECKER_NO_TELEMETRY=true
.
You can read the full privacy policy for Determinate Systems, the creators of the Determinate Nix Installer, here.