summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2009-11-05 15:39:39 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2009-11-05 15:39:39 +0000
commit5684506470f7fbf76c308fd58f92b9a4211aa175 (patch)
treedef70a3b2349d813c052bbfe53ddd5db7e157e0e
parentc713b0ed679d35cdb999c19aadb5b4914f7c1e0f (diff)
downloadnixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.tar
nixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.tar.gz
nixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.tar.bz2
nixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.tar.lz
nixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.tar.xz
nixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.tar.zst
nixlib-5684506470f7fbf76c308fd58f92b9a4211aa175.zip
* Add isDefined to each options. This will clean-up NixOS introspection.
svn path=/nixpkgs/trunk/; revision=18147
-rw-r--r--pkgs/lib/modules.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix
index 1744d39d8de5..9bd3b4aab8ce 100644
--- a/pkgs/lib/modules.nix
+++ b/pkgs/lib/modules.nix
@@ -223,6 +223,7 @@ rec {
 
           value = decl // (with config; {
             inherit (config) isNotDefined;
+            isDefined = ! isNotDefined;
             declarations = declarationSources;
             definitions = definitionSources;
             config = strictResult;