modules/tested: init

This commit is contained in:
Max Headroom 2022-05-31 11:45:26 +02:00
parent bd5f155e23
commit 5d8dc23cb5
2 changed files with 14 additions and 0 deletions

View file

@ -23,6 +23,7 @@ let
sss = import ./sss; sss = import ./sss;
system-info = import ./system-info; system-info = import ./system-info;
system-recovery = import ./system-recovery; system-recovery = import ./system-recovery;
tested = import ./tested;
}; };
in rec { in rec {
modules = aspects; modules = aspects;
@ -47,6 +48,7 @@ in rec {
motd motd
nix-config-server nix-config-server
system-recovery system-recovery
tested
] ++ base ++ networking; ] ++ base ++ networking;
container = [ container = [

View file

@ -0,0 +1,12 @@
{ 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;
}