Skip to content

Release 0.7.0: Add flake validator module

Horizon Bot requested to merge fix/default-empty-systems into master

Summary

Release 0.7.0 adds a new flake validator module.

Changes in 0.7.0

  • Add new flake validator module combining flake-lock and flake-show validation
  • Creates two separate CI jobs for better granularity:
    • flake-lock: Ensures flake.lock is up to date
    • flake-show: Validates nix flake show succeeds (catches evaluation errors)
  • Optional allowImportFromDerivation flag (defaults to false)
  • Import via inputs.gitlab-ci.modules.gitlab-ci.flake

Example Usage

{
  perSystem = { ... }: {
    gitlab.ci = {
      enable = true;
      imports = [ inputs.gitlab-ci.modules.gitlab-ci.flake ];

      flake = {
        enable = true;
        allowImportFromDerivation = false;  # optional, defaults to false
      };
    };
  };
}

Rationale

The flake validator helps catch both lock file drift and flake evaluation errors early in CI, ensuring the flake stays healthy.

🤖 Generated with Claude Code

Edited by Horizon Bot

Merge request reports