build04: building 00cn348hyy9shk7hrl5k7cjbgxhdk08x-treefmt-check.drv treefmt v2.6.0traversed 1079 files emitted 917 files for processing formatted 917 files (1 changed) in 9.452s M docs/src/guides/cloud-provider-notes.md diff --git a/docs/src/guides/cloud-provider-notes.md b/docs/src/guides/cloud-provider-notes.md index 2d642bd..a21b7d5 100644 --- a/docs/src/guides/cloud-provider-notes.md +++ b/docs/src/guides/cloud-provider-notes.md @@ -7,12 +7,12 @@ The [Getting Started](/docs/getting-started/quick-start) guide works with any cl * **Use Nitro instance types** (t3, m5, c5, r5, m6i, c6i, …). Xen instance types (t2, m4, c4, r4, …) don't work with the kexec step Clan uses to boot the installer. * AWS key pairs are separate `.pem` files. To use your `~/.ssh/id_ed25519` key, add it to the default `ubuntu` user: - ```bash - ssh -i ~/.ssh/.pem ubuntu@ \ - "cat >> ~/.ssh/authorized_keys" < ~/.ssh/id_ed25519.pub - ``` + ```bash + ssh -i ~/.ssh/.pem ubuntu@ \ + "cat >> ~/.ssh/authorized_keys" < ~/.ssh/id_ed25519.pub + ``` - Then run the hardware step with `--target-host ubuntu@`. + Then run the hardware step with `--target-host ubuntu@`. ## Google Cloud @@ -36,53 +36,53 @@ Google Cloud needs its guest drivers, and it does not expose the partition table 1. Replace the contents of `machines/test-machine/configuration.nix` with: - ```nix [machines/test-machine/configuration.nix] - { lib, modulesPath, ... }: - { - imports = [ - (modulesPath + "/virtualisation/google-compute-image.nix") - ]; - networking.hostName = lib.mkForce "test-machine"; - security.googleOsLogin.enable = lib.mkForce false; - } - ``` + ```nix [machines/test-machine/configuration.nix] + { lib, modulesPath, ... }: + { + imports = [ + (modulesPath + "/virtualisation/google-compute-image.nix") + ]; + networking.hostName = lib.mkForce "test-machine"; + security.googleOsLogin.enable = lib.mkForce false; + } + ``` - The `google-compute-image.nix` module provides the drivers and services for Google Cloud. It also enables Google OS Login, which conflicts with the authorized keys managed by Clan's `sshd` service, so it is disabled. + The `google-compute-image.nix` module provides the drivers and services for Google Cloud. It also enables Google OS Login, which conflicts with the authorized keys managed by Clan's `sshd` service, so it is disabled. 2. In `machines/test-machine/disko.nix`, add `lib` to the function arguments, label the file systems, and boot from those labels: - ```nix [machines/test-machine/disko.nix] {1,7,8,21,30} - { lib, ... }: - { - boot.loader.grub = { - efiInstallAsRemovable = true; - efiSupport = true; - }; - boot.loader.timeout = lib.mkForce 0; - fileSystems."/".device = lib.mkForce "/dev/disk/by-label/nixos"; - - disko.devices = { - disk = { - main = { - # ... - ESP = { - # ... - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = [ "umask=0077" ]; - extraArgs = [ "-n" "ESP" ]; - }; - }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - extraArgs = [ "-L" "nixos" ]; - }; - }; - # ... - ``` + ```nix [machines/test-machine/disko.nix] {1,7,8,21,30} + { lib, ... }: + { + boot.loader.grub = { + efiInstallAsRemovable = true; + efiSupport = true; + }; + boot.loader.timeout = lib.mkForce 0; + fileSystems."/".device = lib.mkForce "/dev/disk/by-label/nixos"; + + disko.devices = { + disk = { + main = { + # ... + ESP = { + # ... + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + extraArgs = [ "-n" "ESP" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + extraArgs = [ "-L" "nixos" ]; + }; + }; + # ... + ```