From 5d8dc23cb551c3d3d73c76140428e6490febd066 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 31 May 2022 11:45:26 +0200 Subject: [PATCH] modules/tested: init --- modules/default.nix | 2 ++ modules/tested/default.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/tested/default.nix 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; +}