Install NixOS on GCE: Difference between revisions
imported>Fadenb m Syntax highlighting |
imported>Fadenb m →Preparing a NixOS image: use correct syntax highlight language |
||
Line 14: | Line 14: | ||
Next we will create a NixOS image. A source for NixOS images can be found the google storage bucket named [https://storage.cloud.google.com/nixos-images gs://nixos-images]. | Next we will create a NixOS image. A source for NixOS images can be found the google storage bucket named [https://storage.cloud.google.com/nixos-images gs://nixos-images]. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
$ gsutil ls -l gs://nixos-images | $ gsutil ls -l gs://nixos-images | ||
256556736 2014-12-17T10:51:00Z gs://nixos-images/nixos-14.10pre-git-x86_64-linux.raw.tar.gz | 256556736 2014-12-17T10:51:00Z gs://nixos-images/nixos-14.10pre-git-x86_64-linux.raw.tar.gz | ||
Line 22: | Line 22: | ||
In this tutorial we will use gs://nixos-images/nixos-14.12.542.4c9ef9f7-x86_64-linux.raw.tar.gz and follow the [https://cloud.google.com/compute/docs/images?_ga=1.122328651.1179090775.1417532639#creating_an_image_from_a_tar_file documentation on how to create an image from a .tar.gz file]. | In this tutorial we will use gs://nixos-images/nixos-14.12.542.4c9ef9f7-x86_64-linux.raw.tar.gz and follow the [https://cloud.google.com/compute/docs/images?_ga=1.122328651.1179090775.1417532639#creating_an_image_from_a_tar_file documentation on how to create an image from a .tar.gz file]. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
$ gcloud compute images create nixos-14125424c9ef9f7-x86-64-linux --source-uri gs://nixos-images/nixos-14.12.542.4c9ef9f7-x86_64-linux.raw.tar.gz | $ gcloud compute images create nixos-14125424c9ef9f7-x86-64-linux --source-uri gs://nixos-images/nixos-14.12.542.4c9ef9f7-x86_64-linux.raw.tar.gz | ||
$ gcloud compute images describe nixos-14125424c9ef9f7-x86-64-linux | $ gcloud compute images describe nixos-14125424c9ef9f7-x86-64-linux |