depot/modules/tested/default.nix
2023-03-11 19:48:30 +01:00

14 lines
319 B
Nix

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