depot/modules/tested/default.nix
2022-05-31 11:47:53 +02:00

12 lines
321 B
Nix

{ config, inputs, lib, pkgs, ... }:
with lib;
{
options = {
tested.requiredChecks = mkOption {
type = with types; listOf str;
description = "Flake checks to perform.";
};
};
config.system.extraDependencies = map (name: inputs.self.checks.${pkgs.system}.${name}) config.tested.requiredChecks;
}