diff options
author | Alexandru Scvortov <code@scvalex.net> | 2022-03-04 20:08:09 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-03-05 13:51:37 +0000 |
commit | f386c42a48397d232869e03f123e2bb5f8bfd3d8 (patch) | |
tree | d64baad46d7f83c0f1ad22fea0720b56e3c31abb /nixos/doc/manual/from_md | |
parent | cd7e516b266b96519b378c1751cd105401755232 (diff) | |
download | nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.tar nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.tar.gz nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.tar.bz2 nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.tar.lz nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.tar.xz nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.tar.zst nixlib-f386c42a48397d232869e03f123e2bb5f8bfd3d8.zip |
nixos/doc: improve wording in "Options Types" and "Option Declarations"
Diffstat (limited to 'nixos/doc/manual/from_md')
-rw-r--r-- | nixos/doc/manual/from_md/development/option-declarations.section.xml | 29 | ||||
-rw-r--r-- | nixos/doc/manual/from_md/development/option-types.section.xml | 8 |
2 files changed, 19 insertions, 18 deletions
diff --git a/nixos/doc/manual/from_md/development/option-declarations.section.xml b/nixos/doc/manual/from_md/development/option-declarations.section.xml index 0eeffae628e1..554705e2e424 100644 --- a/nixos/doc/manual/from_md/development/option-declarations.section.xml +++ b/nixos/doc/manual/from_md/development/option-declarations.section.xml @@ -215,21 +215,22 @@ lib.mkOption { manager backend (sddm, gdm ...). </para> <para> - There are two approach to this module structure: + There are two approaches we could take with this module + structure: </para> <itemizedlist> <listitem> <para> - Managing the display managers independently by adding an - enable option to every display manager module backend. - (NixOS) + Configuring the display managers independently by adding + an enable option to every display manager module + backend. (NixOS) </para> </listitem> <listitem> <para> - Managing the display managers in the central module by - adding an option to select which display manager backend - to use. + Configuring the display managers in the central module + by adding an option to select which display manager + backend to use. </para> </listitem> </itemizedlist> @@ -238,16 +239,16 @@ lib.mkOption { </para> <para> Making backends independent can quickly become hard to - manage. For display managers, there can be only one enabled - at a time, but the type system can not enforce this - restriction as there is no relation between each backend + manage. For display managers, there can only be one enabled + at a time, but the type system cannot enforce this + restriction as there is no relation between each backend’s <literal>enable</literal> option. As a result, this - restriction has to be done explicitely by adding assertions + restriction has to be done explicitly by adding assertions in each display manager backend module. </para> <para> - On the other hand, managing the display managers backends in - the central module will require to change the central module + On the other hand, managing the display manager backends in + the central module will require changing the central module option every time a new backend is added or removed. </para> <para> @@ -268,7 +269,7 @@ lib.mkOption { <para> As a result, <literal>displayManager.enable</literal> option values can be added without changing the main service module - file and the type system automatically enforce that there + file and the type system automatically enforces that there can only be a single display manager enabled. </para> <anchor xml:id="ex-option-declaration-eot-service" /> diff --git a/nixos/doc/manual/from_md/development/option-types.section.xml b/nixos/doc/manual/from_md/development/option-types.section.xml index 50a3da0ef5bb..e16453df51e6 100644 --- a/nixos/doc/manual/from_md/development/option-types.section.xml +++ b/nixos/doc/manual/from_md/development/option-types.section.xml @@ -30,10 +30,10 @@ </term> <listitem> <para> - A filesystem path, defined as anything that when coerced to - a string starts with a slash. Even if derivations can be - considered as path, the more specific - <literal>types.package</literal> should be preferred. + A filesystem path is anything that starts with a slash when + coerced to a string. Even if derivations can be considered + as paths, the more specific <literal>types.package</literal> + should be preferred. </para> </listitem> </varlistentry> |