Jump to content

Template:Evaluate: Difference between revisions

From NixOS Wiki
Malix (talk | contribs)
types
Malix (talk | contribs)
m fix
Line 70: Line 70:
{
{
"params": {
"params": {
"root": {
"1": {
"type": "boolean",
"default": "false"
},
"type": {
"aliases": [
"aliases": [
"1"
"type"
],
],
"type": "string",
"type": "string",
Line 83: Line 79:
"test"
"test"
]
]
},
"root": {
"type": "boolean",
"default": "false"
}
}
},
},
"paramOrder": [
"paramOrder": [
"root",
"root",
"type"
"1"
],
],
"format": "inline"
"format": "inline"

Revision as of 21:44, 27 August 2025


About

This template is used to remind end-users that they need to rebuild for the changes to take effect. Optionally, you may define the action being suggested.

Usage

Default Evaluate Box:

{{Evaluate}}

Boot Evaluate Box:

{{Evaluate|boot}}


Test Evaluate Box:

{{Evaluate|test}}

Default Evaluate Box without --use-remote-sudo:

{{Evaluate|root=true}}


Boot Evaluate Box without --use-remote-sudo:

{{Evaluate|boot|root=true}}


Test Evaluate Box without --use-remote-sudo:

{{Evaluate|test|root=true}}

Example

Default Evaluate Box:

🟆︎
Tip: In order to affect your NixOS system by your nix-language-specific changes you must first evaluate it:
$ nixos-rebuild switch --use-remote-sudo


Boot Evaluate Box:

🟆︎
Tip: In order to affect your NixOS system by your nix-language-specific changes you must first evaluate it:
$ nixos-rebuild boot --use-remote-sudo
Then, reboot:
$ systemctl reboot


Test Evaluate Box:

🟆︎
Tip: In order to affect your NixOS system by your nix-language-specific changes you must first evaluate it:
$ nixos-rebuild test --use-remote-sudo
Remember: any changes evaluated through nixos-rebuild test will not persist upon reboot.


Default Evaluate Box without --use-remote-sudo:

🟆︎
Tip: In order to affect your NixOS system by your nix-language-specific changes you must first evaluate it:
# nixos-rebuild switch


Boot Evaluate Box without --use-remote-sudo:

🟆︎
Tip: In order to affect your NixOS system by your nix-language-specific changes you must first evaluate it:
# nixos-rebuild boot
Then, reboot:
# systemctl reboot


Test Evaluate Box without --use-remote-sudo:

🟆︎
Tip: In order to affect your NixOS system by your nix-language-specific changes you must first evaluate it:
# nixos-rebuild test
Remember: any changes evaluated through nixos-rebuild test will not persist upon reboot.



No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
rootroot

no description

Default
false
Booleanoptional
11 type

no description

Suggested values
boot test
Stringoptional