|
26 | 26 | <p>Make sure to follow the instructions output by the script.</p>
|
27 | 27 | <p>The installation script requires that you have <code>sudo</code> access to <code>root</code>.</p>
|
28 | 28 | </section>
|
| 29 | + |
29 | 30 | <section class="tab-pane" id="nix-verify-installation">
|
30 | 31 | <p>You may want to verify the integrity of the installation script using GPG:</p>
|
31 | 32 | <pre class="well">
|
|
41 | 42 | <a href="https://github.com/NixOS/nixos-homepage/blob/master/edolstra.gpg">on GitHub</a>.
|
42 | 43 | </p>
|
43 | 44 | </section>
|
| 45 | + |
44 | 46 | <section class="tab-pane" id="nix-uninstall">
|
45 | 47 | <p>
|
46 | 48 | You can uninstall Nix simply by running <code>rm -rf /nix</code>.
|
47 | 49 | </p>
|
48 | 50 | <!-- TODO: expand this https://github.com/NixOS/nix/issues/1402 -->
|
49 | 51 | </section>
|
| 52 | + |
50 | 53 | <section class="tab-pane" id="nix-more">
|
51 | 54 | <p>The following release items are also available:</p>
|
52 | 55 | <ul>
|
|
83 | 86 | <li class="active"><a href="#nixos-iso">ISO image</a></li>
|
84 | 87 | <li><a href="#nixos-virtualbox">VirtualBox</a></li>
|
85 | 88 | <li><a href="#nixos-amazon">Amazon EC2</a></li>
|
86 |
| - <li><a href="#nixos-azure">Microsoft Azure</a></li> |
87 | 89 | <li><a href="#nixos-google">Google Compute Engine</a></li>
|
88 | 90 | <li><a href="#nixos-more">More ...</a></li>
|
89 | 91 | </ul>
|
|
124 | 126 | href="[%prefix%]/latest-nixos-minimal-i686-linux.iso.sha256">SHA-256</a>)</li>
|
125 | 127 | </ul>
|
126 | 128 | </section>
|
| 129 | + |
127 | 130 | <section class="tab-pane" id="nixos-virtualbox">
|
128 | 131 | <p>This is a demo appliance for VirtualBox (in OVA format) that has
|
129 | 132 | X11 and Plasma 5 enabled, as well as the VirtualBox guest additions. To
|
|
139 | 142 | href="[%prefix%]/latest-nixos-x86_64-linux.ova.sha256">SHA-256</a>)</li>
|
140 | 143 | </ul>
|
141 | 144 | </section>
|
| 145 | + |
142 | 146 | <section class="tab-pane" id="nixos-amazon">
|
143 | 147 | <p>If you are an EC2 user, you can deploy a NixOS instance instantly
|
144 | 148 | in your preferred region by using one of the AMIs listed below.</p>
|
|
182 | 186 | <pre class="well">
|
183 | 187 | $ ec2-run-instances [% ami %] --region [% region %] -k <em>my-key-pair</em></pre>
|
184 | 188 | </section>
|
185 |
| - <section class="tab-pane" id="nixos-azure"> |
186 |
| - <p>If you are an Azure user, you can manually create a NixOS instance |
187 |
| - by using one of the bootstrap BLOBs listed below.</p> |
188 | 189 |
|
189 |
| - <div class="alert alert-block"> |
190 |
| - Please note that latest release currently lacks Azure image. We hope to |
191 |
| - change this soon. |
192 |
| - </div> |
193 |
| - |
194 |
| - <div class="row"> |
195 |
| - <table class="table"> |
196 |
| - <thead> |
197 |
| - <tr> |
198 |
| - <th>NixOS version</th> |
199 |
| - <th>BLOB URL</th> |
200 |
| - </tr> |
201 |
| - </thead> |
202 |
| - <tbody> |
203 |
| - [% blobs = JSON.Escape.json_decode(IO.All.new(nixosAzureBlobs).all) %] |
204 |
| - [% FOREACH version IN blobs.keys.sort; blob = blobs.$version %] |
205 |
| - <tr> |
206 |
| - <td><code>[% version %]</code></td> |
207 |
| - <td><a href="[% blob %]"><code>[% blob %]</code></a></td> |
208 |
| - </tr> |
209 |
| - [% END %] |
210 |
| - </tbody> |
211 |
| - </table> |
212 |
| - </div> |
213 |
| - |
214 |
| - <p>You can create an instance from the command line. |
215 |
| - For example, to create an instance of version |
216 |
| - <code>[% blob = blobs.$latestNixOSSeries; latestNixOSSeries %]</code> |
217 |
| - of NixOS using azure-cli, just run:</p> |
218 |
| - |
219 |
| - <pre class="well"> |
220 |
| -# settings |
221 |
| -# vm name must be lowercase and letters/numbers only because it's also used as the domain name |
222 |
| -export VM_NAME="nixosvm" |
223 |
| -export RESOURCE_GROUP="rg-nixosvm" |
224 |
| -export LOCATION="eastus" |
225 |
| -export STORAGE_ACCOUNT="nixosvm" |
226 |
| -export SOURCE_URI="<code>[% blob %]</code>" |
227 |
| - |
228 |
| -# create group |
229 |
| -az group create \ |
230 |
| - --name "$RESOURCE_GROUP" \ |
231 |
| - --location "$LOCATION |
232 |
| - |
233 |
| -# create storage |
234 |
| -az storage account create \ |
235 |
| - --name "$STORAGE_ACCOUNT" \ |
236 |
| - --group "$RESOURCE_GROUP" \ |
237 |
| - --location "$LOCATION" \ |
238 |
| - --sku Standard_LRS |
239 |
| - |
240 |
| -az storage account keys list \ |
241 |
| - --name "$STORAGE_ACCOUNT" \ |
242 |
| - --group $RESOURCE_GROUP |
243 |
| - |
244 |
| -# export one of the storage access keys |
245 |
| -export STORAGE_ACCOUNT_KEY="..." |
246 |
| -echo $STORAGE_ACCOUNT_KEY |
247 |
| - |
248 |
| -az storage container create \ |
249 |
| - --account-name "$STORAGE_ACCOUNT" |
250 |
| - --account-key "$STORAGE_ACCOUNT_KEY" |
251 |
| - --name vm-images |
252 |
| - |
253 |
| -# copy the image blob |
254 |
| -az storage blob copy start \ |
255 |
| - --source-uri "$SOURCE_URI" \ |
256 |
| - --destination-blob "nixos-unstable-nixops.vhd" \ |
257 |
| - --destination-container "vm-images" \ |
258 |
| - --account-name "$STORAGE_ACCOUNT" \ |
259 |
| - --account-key "$STORAGE_ACCOUNT_KEY" |
260 |
| - |
261 |
| -# wait for blob copy status to change pending->success |
262 |
| -az storage blob show \ |
263 |
| - --name "nixos-unstable-nixops.vhd" \ |
264 |
| - --container-name "vm-images" \ |
265 |
| - --account-name "$STORAGE_ACCOUNT" \ |
266 |
| - --account-key "$STORAGE_ACCOUNT_KEY" |
267 |
| - |
268 |
| - |
269 |
| -# create vm |
270 |
| -az vm create \ |
271 |
| - --name "$VM_NAME" \ |
272 |
| - --resource-group "$RESOURCE_GROUP" \ |
273 |
| - --location "$LOCATION" \ |
274 |
| - --public-ip-address-dns-name "$VM_NAME" \ |
275 |
| - --image "https://$STORAGE_ACCOUNT.blob.core.windows.net/vm-images/nixos-unstable-nixops.vhd" \ |
276 |
| - --storage-account "$STORAGE_ACCOUNT" \ |
277 |
| - --storage-container-name "$VM_NAME" \ |
278 |
| - --use-unmanaged-disk \ |
279 |
| - --os-disk-size-gb "32" \ |
280 |
| - --os-type linux \ |
281 |
| - --admin-username "azureuser" \ |
282 |
| - --generate-ssh-keys |
283 |
| - |
284 |
| -# show machine properties and log in |
285 |
| -az vm show \ |
286 |
| - --name "$VM" \ |
287 |
| - --resource-group "$GROUP" |
288 |
| - |
289 |
| -ssh azureuser@"$VM_NAME"."$LOCATION".cloudapp.azure.com</pre> |
290 |
| - </section> |
291 | 190 | <section class="tab-pane" id="nixos-google">
|
292 | 191 | <p>If you are Google Cloud Platform user, you can create a NixOS image using one of the raw disks listed below. You
|
293 | 192 | can then create a NixOS instance using the image.</p>
|
@@ -326,6 +225,7 @@ source_uri=$(sed 's%gs:/%https://storage.googleapis.com%' <<< $source_u
|
326 | 225 | gcloud compute images create $image --source-uri=$source_uri
|
327 | 226 | gcloud compute instances create instance-1 --image=$image</pre>
|
328 | 227 | </section>
|
| 228 | + |
329 | 229 | <section class="tab-pane" id="nixos-more">
|
330 | 230 | <h2 id="unstable-releases">Unstable releases</h2>
|
331 | 231 |
|
|
0 commit comments