NixOS modules: Add error context on module arguments evaluation.

This commit is contained in:
Nicolas B. Pierron
2015-07-14 15:07:54 +02:00
parent 2fa88f65ea
commit a6b455bbae
5 changed files with 37 additions and 8 deletions
@@ -0,0 +1,7 @@
{ lib, ... }:
{
config = {
_module.args.custom = true;
};
}
@@ -2,7 +2,6 @@
{
config = {
_module.args.custom = true;
enable = custom;
};
}
+6
View File
@@ -0,0 +1,6 @@
{ lib, custom, ... }:
{
imports = []
++ lib.optional custom ./define-enable-force.nix;
}