about summary refs log tree commit diff
path: root/modules/profiles/common.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-12-11 04:36:13 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-12-11 04:36:13 +0100
commitde77a794486a31f66cd0fb8cd90653941dbe6d20 (patch)
tree8a256a4bd8ec3e6030155f0026d97dcae82ca1a5 /modules/profiles/common.nix
parent93d9408a23e7693af7aa3a36d5df33a19c825523 (diff)
profiles/common: Add a new requiresTests option.
The idea is that modules can define a list of test jobs which need to
succeed whenever the module is used.

In the end this should make channel updates a bit less frightening for
people not already confident in using NixOS.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/profiles/common.nix')
-rw-r--r--modules/profiles/common.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/profiles/common.nix b/modules/profiles/common.nix
index 39535d4f..8621f6ae 100644
--- a/modules/profiles/common.nix
+++ b/modules/profiles/common.nix
@@ -33,6 +33,15 @@ with lib;
         The channel name which is used to refer to <literal>vuizvui</literal>.
       '';
     };
+
+    requiresTests = mkOption {
+      type = types.listOf types.package;
+      default = [];
+      description = ''
+        A list of derivations which have to succeed in order to trigger a
+        channel update for the current configuration/machine.
+      '';
+    };
   };
 
   config = {