diff --git a/modules/default.nix b/modules/default.nix index 5f1ec11..aa9343d 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -23,6 +23,7 @@ let sss = import ./sss; system-info = import ./system-info; system-recovery = import ./system-recovery; + tested = import ./tested; }; in rec { modules = aspects; @@ -47,6 +48,7 @@ in rec { motd nix-config-server system-recovery + tested ] ++ base ++ networking; container = [ diff --git a/modules/tested/default.nix b/modules/tested/default.nix new file mode 100644 index 0000000..d6b7a77 --- /dev/null +++ b/modules/tested/default.nix @@ -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; +}