depot/modules/tested/default.nix

14 lines
319 B
Nix
Raw Normal View History

2023-03-07 02:25:57 +02:00
{ config, depot, lib, pkgs, ... }:
2022-05-31 12:45:26 +03:00
with lib;
{
options = {
tested.requiredChecks = mkOption {
type = with types; listOf str;
description = "Flake checks to perform.";
2022-05-31 15:21:19 +03:00
default = [];
2022-05-31 12:45:26 +03:00
};
};
2023-03-07 02:25:57 +02:00
config.system.extraDependencies = map (name: depot.checks.${name}) config.tested.requiredChecks;
2022-05-31 12:45:26 +03:00
}