User:SigmaSquadron/Template:Evaluate: Difference between revisions

From NixOS Wiki
Proposal for altering Template:Evaluate
 
No edit summary
Line 1: Line 1:
<pre>
<noinclude>{{DISPLAYTITLE:Template:evaluate}}
<noinclude>{{DISPLAYTITLE:Template:evaluate}}


Line 30: Line 31:
</noinclude><includeonly>{{Tip
</noinclude><includeonly>{{Tip
|1=In order to '''affect''' your NixOS system by your nix-language-specific changes you must first '''evaluate''' it:{{Commands|$ nixos-rebuild {{{action|switch}}} --use-remote-sudo}}{{#ifeq: boot | {{{action}}} | Then, reboot:{{Commands|$ systemctl reboot}}}}{{#ifeq: test | {{{action}}} | '''Remember:''' any changes evaluated through <code>nixos-rebuild test</code> '''will not''' persist upon reboot.}}}}</includeonly>
|1=In order to '''affect''' your NixOS system by your nix-language-specific changes you must first '''evaluate''' it:{{Commands|$ nixos-rebuild {{{action|switch}}} --use-remote-sudo}}{{#ifeq: boot | {{{action}}} | Then, reboot:{{Commands|$ systemctl reboot}}}}{{#ifeq: test | {{{action}}} | '''Remember:''' any changes evaluated through <code>nixos-rebuild test</code> '''will not''' persist upon reboot.}}}}</includeonly>
</pre>

Revision as of 09:02, 4 July 2024

<noinclude>{{DISPLAYTITLE:Template:evaluate}}

== About ==
This template is used to remind end-users that they need to rebuild for the changes to take effect. The optional attribute <code>action</code> can be used to define the subcommand suggested by the tip.

== Usage ==

Default <code>Evaluate</code> Box:

<pre>
{{Evaluate}}

Boot Evaluate Box:

{{Evaluate|boot}}

Example

Default Evaluate Box:

Boot Evaluate Box:

Test Evaluate Box: