depot/modules/tested/default.nix
2022-05-31 14:21:19 +02:00

13 lines
341 B
Nix

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