Install NixOS on GCE: Difference between revisions
Bmwagner18 (talk | contribs) m To use the default script, the GCE bucket must have specific permission settings. I added a phrase that specifies this. |
update example to 24.11 |
||
(One intermediate revision by one other user not shown) | |||
Line 36: | Line 36: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ git clone --depth=1 --branch | $ git clone --depth=1 --branch nixos-24.11 https://github.com/NixOS/nixpkgs.git | ||
$ BUCKET_NAME=my_bucket_name nixpkgs/nixos/maintainers/scripts/gce/create-gce.sh | $ BUCKET_NAME=my_bucket_name nixpkgs/nixos/maintainers/scripts/gce/create-gce.sh | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 89: | Line 89: | ||
At this point you may want to snapshot this image and use this snapshot to make future VMs. | At this point you may want to snapshot this image and use this snapshot to make future VMs. | ||
[[Category:Server]][[Category:Cookbook]] | [[Category:Server]][[Category:Cookbook]] | ||
[[Category:Deployment]] |