NixOS as a desktop/zh: Difference between revisions

Mayer (talk | contribs)
Created page with "configuration.nix是NixOS模块的一个实例, 因此把你的配置分开放入若干文件中很容易. 模块可以:"
Mayer (talk | contribs)
Created page with "* 导入其他模块 * 声明新的选项 * 为选项设定值(这就是你的默认configuration.nix主要做的事情) * 从其他模块引用选项的值(通过传给所有模块的<code>config</code>属性)"
Line 39: Line 39:
模块可以:
模块可以:


<div lang="en" dir="ltr" class="mw-content-ltr">
* 导入其他模块
* Import other modules
* 声明新的选项
* Declare new options
* 为选项设定值(这就是你的默认configuration.nix主要做的事情)
* Provide values for options (this is what most of your default configuration.nix does)
* 从其他模块引用选项的值(通过传给所有模块的<code>config</code>属性)
* Reference option values from other modules (via the <code>config</code> attribute passed to all modules)
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">