NixOS as a desktop/zh: Difference between revisions

Moraxyc (talk | contribs)
Created page with "{{main|NixOS 系统配置}}"
Moraxyc (talk | contribs)
Created page with "<syntaxhighlight lang="console"> # nixos-rebuild switch </syntaxhighlight>"
Line 23: Line 23:
{{main|NixOS 系统配置}}
{{main|NixOS 系统配置}}


<div lang="en" dir="ltr" class="mw-content-ltr">
<code>/etc/nixos/configuration.nix</code>是主配置文件,用于定义系统级设置。其中包括启用服务、管理系统用户、配置硬件选项以及指定安装的软件包。
The primary configuration file, <code>/etc/nixos/configuration.nix</code>, defines system-wide settings. This includes options like enabling services, managing system users, setting hardware options, and specifying installed packages. Changes are applied with:
若要使更改生效,请运行:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# nixos-rebuild switch
# nixos-rebuild switch
</syntaxhighlight>
</syntaxhighlight>
</div>


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