summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-03-07 11:23:24 +0100
committerRobert Hensing <robert@roberthensing.nl>2022-03-07 11:23:24 +0100
commitc4b38702e59ea156924d3297e3f7ec80f7f816cb (patch)
treea2779ead7531599760010466f5c6f322726a975d /lib/modules.nix
parentc90844aeb97c0d57f3dbb5774f56cddbf5b2a16d (diff)
downloadnixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.tar
nixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.tar.gz
nixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.tar.bz2
nixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.tar.lz
nixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.tar.xz
nixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.tar.zst
nixpkgs-c4b38702e59ea156924d3297e3f7ec80f7f816cb.zip
lib/modules.nix: Add comment about internal shorthand null value
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index 5d1532af623..25cd5921dec 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -496,6 +496,9 @@ rec {
             options = mkOption {
               type = types.submoduleWith {
                 modules = [ { options = decl.options; } ];
+                # `null` is not intended for use by modules. It is an internal
+                # value that means "whatever the user has declared elsewhere".
+                # This might become obsolete with https://github.com/NixOS/nixpkgs/issues/162398
                 shorthandOnlyDefinesConfig = null;
               };
             };