Install NixOS on GCE: Difference between revisions
imported>Korfuri Update instructions for GCE NixOS setup, reflecting the lack of updates since 20.09. Focus on the only current option, build-your-own-image. |
imported>Korfuri m Make it clear that create-gce.sh creates public images only. |
||
Line 30: | Line 30: | ||
This will create an image and upload it to the bucket. It will also create a GCE image that VMs can use. | This will create an image and upload it to the bucket. It will also create a GCE image that VMs can use. | ||
Warning: this script makes the GCS object and the GCE image world-readable. If you are building from a custom configuration that embeds secrets, you should instead read the contents of the script and build and upload manually, setting your own ACLs. | |||
Note: If you build an image from a commit later then [https://github.com/NixOS/nixpkgs/commit/b894dd8b821d74b25911f63762c24024107d9372 this one], you will need to add <code>enable-oslogin = "TRUE"</code> to the instance metadata, to be able to login. | Note: If you build an image from a commit later then [https://github.com/NixOS/nixpkgs/commit/b894dd8b821d74b25911f63762c24024107d9372 this one], you will need to add <code>enable-oslogin = "TRUE"</code> to the instance metadata, to be able to login. |