Flakes: Difference between revisions

Nixos (talk | contribs)
mNo edit summary
m Minor typos
Line 361: Line 361:


<!--T:69-->
<!--T:69-->
{{Ic|nixos-rebuild switch}} will read its configuration from <code>/etc/nixos/flake.nix</code> if it is present.
<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-->
{{Ic|nixos-rebuild}} also allows to specify different flake using the <code>--flake</code> flag (# is optional):
<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 currents system hostname to lookup the right nixos configuration in <code>nixosConfigurations</code>. You can also override this by using appending it to the flake parameter:
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>