about summary refs log tree commit diff
path: root/modules/profiles/tests.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profiles/tests.nix')
-rw-r--r--modules/profiles/tests.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/profiles/tests.nix b/modules/profiles/tests.nix
index 8a8f448b..c1d39d40 100644
--- a/modules/profiles/tests.nix
+++ b/modules/profiles/tests.nix
@@ -9,6 +9,21 @@ let
   ];
 
 in {
+  options.vuizvui = {
+    requiresTests = mkOption {
+      type = types.listOf (types.listOf types.str);
+      default = [];
+      example = [ ["nixos" "nat" "firewall"] ["vuizvui" "foo"] ];
+      description = ''
+        A list of attribute paths to the tests which need to succeed in order to
+        trigger a channel update for the current configuration/machine.
+
+        Every attribute path itself is a list of attribute names, which are
+        queried using <function>lib.getAttrFromPath</function>.
+      '';
+    };
+  };
+
   config = {
     vuizvui.requiresTests = networkTests;
   };