Creating a NixOS live CD: Difference between revisions
mNo edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 28: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
Build the image via: | Build the image via: | ||
</translate> | </translate> | ||
| Line 35: | Line 34: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
Alternatively, use Nix [[Flakes]] to generate a ISO installation image, using the <code>nixos-24.05</code> branch as nixpkgs source: | Alternatively, use Nix [[Flakes]] to generate a ISO installation image, using the <code>nixos-24.05</code> branch as nixpkgs source: | ||
</translate> | </translate> | ||
| Line 58: | Line 56: | ||
</nowiki>}} | </nowiki>}} | ||
<translate> | <translate> | ||
The following commands will generate the iso-image: | The following commands will generate the iso-image: | ||
</translate> | </translate> | ||
| Line 67: | Line 64: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
The resulting image can be found in <code>result</code>: | The resulting image can be found in <code>result</code>: | ||
</translate> | </translate> | ||
| Line 88: | Line 84: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
To boot the ISO image in an emulator: | To boot the ISO image in an emulator: | ||
</translate> | </translate> | ||
| Line 96: | Line 91: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
===SSH=== | ===SSH=== | ||
</translate> | </translate> | ||
| Line 135: | Line 129: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
=== Building faster === | === Building faster === | ||
</translate> | </translate> | ||
| Line 161: | Line 154: | ||
See also: [https://gist.github.com/baryluk/70a99b5f26df4671378dd05afef97fce mksquashfs benchmarks] | See also: [https://gist.github.com/baryluk/70a99b5f26df4671378dd05afef97fce mksquashfs benchmarks] | ||
If you don't care about file size, you can use a faster compression | If you don't care about file size, you can use a faster compression | ||
by adding this to your <code>iso.nix</code>: | by adding this to your <code>iso.nix</code>: | ||
| Line 171: | Line 163: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
==See also== | ==See also== | ||
</translate> | </translate> | ||
| Line 178: | Line 169: | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
[[Category:NixOS]] | [[Category:NixOS]] | ||
[[Category:Deployment]] | [[Category:Deployment]] | ||
[[Category:Cookbook]] | [[Category:Cookbook]] | ||
</translate> | </translate> | ||