Creating a NixOS live CD: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
<translate> | <translate> | ||
== Motivation == | == Motivation == | ||
Creating a modified NixOS LiveCD out of an existing working NixOS installation has a number of benefits: | Creating a modified NixOS LiveCD out of an existing working NixOS installation has a number of benefits: | ||
* Ensures authenticity. | * Ensures authenticity. | ||
| Line 10: | Line 8: | ||
<translate> | <translate> | ||
== Building == | == Building == | ||
Building minimal NixOS installation CD with the <code>nix-build</code> command by creating this <code>iso.nix</code>-file. In this example with [[Neovim]] preinstalled. | Building minimal NixOS installation CD with the <code>nix-build</code> command by creating this <code>iso.nix</code>-file. In this example with [[Neovim]] preinstalled. | ||
</translate> | </translate> | ||
| Line 72: | Line 68: | ||
<translate> | <translate> | ||
=== Testing the image === <!--T:7--> | === Testing the image === <!--T:7--> | ||
To inspect the contents of the ISO image: | To inspect the contents of the ISO image: | ||
</translate> | </translate> | ||
| Line 92: | Line 86: | ||
<translate> | <translate> | ||
===SSH=== | ===SSH=== | ||
In your <tt>iso.nix</tt>: | In your <tt>iso.nix</tt>: | ||
</translate> | </translate> | ||
| Line 109: | Line 101: | ||
<translate> | <translate> | ||
===Static IP Address=== <!--T:11--> | ===Static IP Address=== <!--T:11--> | ||
Static IP addresses can be set in the image itself. This can be useful for VPS installation. | Static IP addresses can be set in the image itself. This can be useful for VPS installation. | ||
</translate> | </translate> | ||
| Line 130: | Line 120: | ||
<translate> | <translate> | ||
=== Building faster === | === Building faster === | ||
The build process is slow because of compression. | The build process is slow because of compression. | ||
| Line 164: | Line 152: | ||
<translate> | <translate> | ||
==See also== | ==See also== | ||
* [https://nixos.org/manual/nixos/stable/index.html#sec-building-image NixOS Manual: Building a NixOS (Live) ISO]. | * [https://nixos.org/manual/nixos/stable/index.html#sec-building-image NixOS Manual: Building a NixOS (Live) ISO]. | ||
</translate> | </translate> | ||