about summary refs log tree commit diff
path: root/nixos/doc/manual/configuration
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-02-08 10:57:26 +0100
committerpennae <github@quasiparticle.net>2023-02-10 06:40:01 +0100
commit65d749c80b8d868a2c1e6aad7e431917a80fe99a (patch)
tree69b8c1b50df1a1c7f7e15d0dcdb3a45af821d696 /nixos/doc/manual/configuration
parent2ad93ab199efb85842bf29187f18bf9538012846 (diff)
downloadnixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.tar
nixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.tar.gz
nixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.tar.bz2
nixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.tar.lz
nixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.tar.xz
nixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.tar.zst
nixlib-65d749c80b8d868a2c1e6aad7e431917a80fe99a.zip
nixos/manual: inline the single footnote
this is a lot easier than adding footnote support for just the one
instance. if a use case for footnotes appears in the future (e.g. if we
wanted to render the nixpkgs manual with nixos-render-docs as well) this
decision should be reevaluated.
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r--nixos/doc/manual/configuration/modularity.section.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/doc/manual/configuration/modularity.section.md b/nixos/doc/manual/configuration/modularity.section.md
index 3395ace20c4f..2eff15387987 100644
--- a/nixos/doc/manual/configuration/modularity.section.md
+++ b/nixos/doc/manual/configuration/modularity.section.md
@@ -67,7 +67,13 @@ When using multiple modules, you may need to access configuration values
 defined in other modules. This is what the `config` function argument is
 for: it contains the complete, merged system configuration. That is,
 `config` is the result of combining the configurations returned by every
-module [^1] . For example, here is a module that adds some packages to
+module. (If you're wondering how it's possible that the (indirect) *result*
+of a function is passed as an *input* to that same function: that's
+because Nix is a "lazy" language --- it only computes values when
+they are needed. This works as long as no individual configuration
+value depends on itself.)
+
+For example, here is a module that adds some packages to
 [](#opt-environment.systemPackages) only if
 [](#opt-services.xserver.enable) is set to `true` somewhere else:
 
@@ -125,9 +131,3 @@ in
 
 { imports = [ (netConfig "nixos.localdomain") ]; }
 ```
-
-[^1]: If you're wondering how it's possible that the (indirect) *result*
-    of a function is passed as an *input* to that same function: that's
-    because Nix is a "lazy" language --- it only computes values when
-    they are needed. This works as long as no individual configuration
-    value depends on itself.