Flakes: Difference between revisions
mNo edit summary |
m Minor typos |
||
| Line 361: | Line 361: | ||
<!--T:69--> | <!--T:69--> | ||
<code>nixos-rebuild switch</code> will read its configuration from <code>/etc/nixos/flake.nix</code> if it is present. | |||
<!--T:70--> | <!--T:70--> | ||
| Line 414: | Line 414: | ||
<!--T:73--> | <!--T:73--> | ||
<code>nixos-rebuild</code> also allows to specify different flake using the <code>--flake</code> flag (# is optional): | |||
</translate> | </translate> | ||
| Line 423: | Line 423: | ||
<!--T:75--> | <!--T:75--> | ||
By default nixos-rebuild will use the | By default <code>nixos-rebuild</code> will use the current system hostname to look up the right NixOS configuration in <code>nixosConfigurations</code>. You can also override this by using appending it to the flake parameter: | ||
</translate> | </translate> | ||