about summary refs log tree commit diff
path: root/modules/profiles
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-12-11 08:17:45 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-12-11 08:17:45 +0100
commit6208b248894c070109d777652141eb1795170067 (patch)
tree362a2c8a29f111785880a425ff9be86985d9b1dc /modules/profiles
parent1ec5200fa4820caae4e99f1025fd09362a388c10 (diff)
profiles/common: Move requiresTests to tests.
That way we have everything regarding the vuizvui testing system in one
module instead of two.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/profiles')
-rw-r--r--modules/profiles/common.nix13
-rw-r--r--modules/profiles/tests.nix15
2 files changed, 15 insertions, 13 deletions
diff --git a/modules/profiles/common.nix b/modules/profiles/common.nix
index 486426e9..dbaec7ed 100644
--- a/modules/profiles/common.nix
+++ b/modules/profiles/common.nix
@@ -33,19 +33,6 @@ with lib;
         The channel name which is used to refer to <literal>vuizvui</literal>.
       '';
     };
-
-    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 = let
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;
   };