depot/modules/tested/default.nix

14 lines
341 B
Nix
Raw Normal View History

2022-05-31 12:45:26 +03:00
{ config, inputs, lib, pkgs, ... }:
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
};
};
config.system.extraDependencies = map (name: inputs.self.checks.${pkgs.system}.${name}) config.tested.requiredChecks;
}