@@ -65,22 +65,22 @@ options = {
6565
6666</para>
6767
68−<section xml:id="sec-option-declarations-eot"><title>Extensible Option
68+<section xml:id="sec-option-declarations-eot"><title>Extensible Option
6969 Types</title>
7070
71− <para>Extensible option types is a feature that allow to extend certain types
71+ <para>Extensible option types is a feature that allow to extend certain types
7272 declaration through multiple module files.
73− This feature only work with a restricted set of types, namely
73+ This feature only work with a restricted set of types, namely
7474 <literal>enum</literal> and <literal>submodules</literal> and any composed
7575 forms of them.</para>
7676
77− <para>Extensible option types can be used for <literal>enum</literal> options
78− that affects multiple modules, or as an alternative to related
77+ <para>Extensible option types can be used for <literal>enum</literal> options
78+ that affects multiple modules, or as an alternative to related
7979 <literal>enable</literal> options.</para>
8080
8181 <para>As an example, we will take the case of display managers. There is a
8282 central display manager module for generic display manager options and a
83− module file per display manager backend (slim, kdm, gdm ...).
83+ module file per display manager backend (slim, sddm, gdm ...).
8484 </para>
8585
8686 <para>There are two approach to this module structure:
@@ -96,7 +96,7 @@ options = {
9696 </para>
9797
9898 <para>Both approachs have problems.</para>
99−
99+
100100 <para>Making backends independent can quickly become hard to manage. For
101101 display managers, there can be only one enabled at a time, but the type
102102 system can not enforce this restriction as there is no relation between
@@ -108,18 +108,18 @@ options = {
108108 central module will require to change the central module option every time
109109 a new backend is added or removed.</para>
110110
111− <para>By using extensible option types, it is possible to create a placeholder
112− option in the central module (<xref linkend='ex-option-declaration-eot-service'
113− />), and to extend it in each backend module (<xref
114− linkend='ex-option-declaration-eot-backend-slim' />, <xref
115− linkend='ex-option-declaration-eot-backend-kdm' />).</para>
116−
111+ <para>By using extensible option types, it is possible to create a placeholder
112+ option in the central module (<xref linkend='ex-option-declaration-eot-service'
113+ />), and to extend it in each backend module (<xref
114+ linkend='ex-option-declaration-eot-backend-slim' />, <xref
115+ linkend='ex-option-declaration-eot-backend-sddm' />).</para>
116+
117117 <para>As a result, <literal>displayManager.enable</literal> option values can
118118 be added without changing the main service module file and the type system
119119 automatically enforce that there can only be a single display manager
120120 enabled.</para>
121121
122−<example xml:id='ex-option-declaration-eot-service'><title>Extensible type
122+<example xml:id='ex-option-declaration-eot-service'><title>Extensible type
123123 placeholder in the service module</title>
124124<screen>
125125services.xserver.displayManager.enable = mkOption {
@@ -127,29 +127,29 @@ services.xserver.displayManager.enable = mkOption {
127127 type = with types; nullOr (enum [ ]);
128128};</screen></example>
129129
130−<example xml:id='ex-option-declaration-eot-backend-slim'><title>Extending
131− <literal>services.xserver.displayManager.enable</literal> in the
130+<example xml:id='ex-option-declaration-eot-backend-slim'><title>Extending
131+ <literal>services.xserver.displayManager.enable</literal> in the
132132 <literal>slim</literal> module</title>
133133<screen>
134134services.xserver.displayManager.enable = mkOption {
135135 type = with types; nullOr (enum [ "slim" ]);
136136};</screen></example>
137137
138−<example xml:id='ex-option-declaration-eot-backend-kdm'><title>Extending
139− <literal>services.foo.backend</literal> in the <literal>kdm</literal>
138+<example xml:id='ex-option-declaration-eot-backend-sdm'><title>Extending
139+ <literal>services.foo.backend</literal> in the <literal>sdm</literal>
140140 module</title>
141141<screen>
142142services.xserver.displayManager.enable = mkOption {
143− type = with types; nullOr (enum [ "kdm" ]);
143+ type = with types; nullOr (enum [ "sddm" ]);
144144};</screen></example>
145145
146−<para>The placeholder declaration is a standard <literal>mkOption</literal>
147− declaration, but it is important that extensible option declarations only use
146+<para>The placeholder declaration is a standard <literal>mkOption</literal>
147+ declaration, but it is important that extensible option declarations only use
148148 the <literal>type</literal> argument.</para>
149149
150−<para>Extensible option types work with any of the composed variants of
151− <literal>enum</literal> such as
152− <literal>with types; nullOr (enum [ "foo" "bar" ])</literal>
150+<para>Extensible option types work with any of the composed variants of
151+ <literal>enum</literal> such as
152+ <literal>with types; nullOr (enum [ "foo" "bar" ])</literal>
153153 or <literal>with types; listOf (enum [ "foo" "bar" ])</literal>.</para>
154154
155155</section>