FAQ/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "另见 Debug Symbols"
Ardenet (talk | contribs)
Created page with "请查阅“man configuration.nix”文件以了解这些选项。重新构建系统以使这些选项生效:"
Line 43: Line 43:
}</syntaxhighlight>
}</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
请查阅“man configuration.nix”文件以了解这些选项。重新构建系统以使这些选项生效:
Check 'man configuration.nix' for these options. Rebuild for these options to take effect:
</div>


<syntaxhighlight lang="bash">nixos-rebuild switch</syntaxhighlight>
<syntaxhighlight lang="bash">nixos-rebuild switch</syntaxhighlight>
Line 148: Line 146:
=== 即使不修改 nix 表达式,我如何强制从源代码重建?===
=== 即使不修改 nix 表达式,我如何强制从源代码重建?===


<div lang="en" dir="ltr" class="mw-content-ltr">
root 用户身份运行 nix-build 时,可以使用 --check 标志:
As root you can run nix-build with the --check flag:
</div>


<syntaxhighlight lang="bash">sudo nix-build --check -A ncdu</syntaxhighlight>
<syntaxhighlight lang="bash">sudo nix-build --check -A ncdu</syntaxhighlight>