diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profiles/common.nix | 13 | ||||
-rw-r--r-- | modules/profiles/tests.nix | 15 |
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; }; |