don't know how to build these paths: /nix/store/nw1p0x0fpq3vhwc68wfzhn8cvmw74b4j-treefmt-check.drv warning: ignoring the client-specified setting 'store', because it is a restricted setting and you are not a trusted user building '/nix/store/nw1p0x0fpq3vhwc68wfzhn8cvmw74b4j-treefmt-check.drv' on nix-store.geninf.io:50051 treefmt-check> build01: building nw1p0x0fpq3vhwc68wfzhn8cvmw74b4j-treefmt-check.drv treefmt-check> treefmt v2.6.0traversed 1079 files treefmt-check> emitted 917 files for processing treefmt-check> formatted 917 files (1 changed) in 12.24s treefmt-check> M docs/src/guides/cloud-provider-notes.md treefmt-check> diff --git a/docs/src/guides/cloud-provider-notes.md b/docs/src/guides/cloud-provider-notes.md treefmt-check> index 2d642bd..a21b7d5 100644 treefmt-check> --- a/docs/src/guides/cloud-provider-notes.md treefmt-check> +++ b/docs/src/guides/cloud-provider-notes.md treefmt-check> @@ -7,12 +7,12 @@ The [Getting Started](/docs/getting-started/quick-start) guide works with any cl treefmt-check> * **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. treefmt-check> * AWS key pairs are separate `.pem` files. To use your `~/.ssh/id_ed25519` key, add it to the default `ubuntu` user: treefmt-check> treefmt-check> - ```bash treefmt-check> - ssh -i ~/.ssh/.pem ubuntu@ \ treefmt-check> - "cat >> ~/.ssh/authorized_keys" < ~/.ssh/id_ed25519.pub treefmt-check> - ``` treefmt-check> + ```bash treefmt-check> + ssh -i ~/.ssh/.pem ubuntu@ \ treefmt-check> + "cat >> ~/.ssh/authorized_keys" < ~/.ssh/id_ed25519.pub treefmt-check> + ``` treefmt-check> treefmt-check> - Then run the hardware step with `--target-host ubuntu@`. treefmt-check> + Then run the hardware step with `--target-host ubuntu@`. treefmt-check> treefmt-check> ## Google Cloud treefmt-check> treefmt-check> @@ -36,53 +36,53 @@ Google Cloud needs its guest drivers, and it does not expose the partition table treefmt-check> treefmt-check> 1. Replace the contents of `machines/test-machine/configuration.nix` with: treefmt-check> treefmt-check> - ```nix [machines/test-machine/configuration.nix] treefmt-check> - { lib, modulesPath, ... }: treefmt-check> - { treefmt-check> - imports = [ treefmt-check> - (modulesPath + "/virtualisation/google-compute-image.nix") treefmt-check> - ]; treefmt-check> - networking.hostName = lib.mkForce "test-machine"; treefmt-check> - security.googleOsLogin.enable = lib.mkForce false; treefmt-check> - } treefmt-check> - ``` treefmt-check> + ```nix [machines/test-machine/configuration.nix] treefmt-check> + { lib, modulesPath, ... }: treefmt-check> + { treefmt-check> + imports = [ treefmt-check> + (modulesPath + "/virtualisation/google-compute-image.nix") treefmt-check> + ]; treefmt-check> + networking.hostName = lib.mkForce "test-machine"; treefmt-check> + security.googleOsLogin.enable = lib.mkForce false; treefmt-check> + } treefmt-check> + ``` treefmt-check> treefmt-check> - 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. treefmt-check> + 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. treefmt-check> treefmt-check> 2. In `machines/test-machine/disko.nix`, add `lib` to the function arguments, label the file systems, and boot from those labels: treefmt-check> treefmt-check> - ```nix [machines/test-machine/disko.nix] {1,7,8,21,30} treefmt-check> - { lib, ... }: treefmt-check> - { treefmt-check> - boot.loader.grub = { treefmt-check> - efiInstallAsRemovable = true; treefmt-check> - efiSupport = true; treefmt-check> - }; treefmt-check> - boot.loader.timeout = lib.mkForce 0; treefmt-check> - fileSystems."/".device = lib.mkForce "/dev/disk/by-label/nixos"; treefmt-check> - treefmt-check> - disko.devices = { treefmt-check> - disk = { treefmt-check> - main = { treefmt-check> - # ... treefmt-check> - ESP = { treefmt-check> - # ... treefmt-check> - content = { treefmt-check> - type = "filesystem"; treefmt-check> - format = "vfat"; treefmt-check> - mountpoint = "/boot"; treefmt-check> - mountOptions = [ "umask=0077" ]; treefmt-check> - extraArgs = [ "-n" "ESP" ]; treefmt-check> - }; treefmt-check> - }; treefmt-check> - root = { treefmt-check> - size = "100%"; treefmt-check> - content = { treefmt-check> - type = "filesystem"; treefmt-check> - format = "ext4"; treefmt-check> - mountpoint = "/"; treefmt-check> - extraArgs = [ "-L" "nixos" ]; treefmt-check> - }; treefmt-check> - }; treefmt-check> - # ... treefmt-check> - ``` treefmt-check> + ```nix [machines/test-machine/disko.nix] {1,7,8,21,30} treefmt-check> + { lib, ... }: treefmt-check> + { treefmt-check> + boot.loader.grub = { treefmt-check> + efiInstallAsRemovable = true; treefmt-check> + efiSupport = true; treefmt-check> + }; treefmt-check> + boot.loader.timeout = lib.mkForce 0; treefmt-check> + fileSystems."/".device = lib.mkForce "/dev/disk/by-label/nixos"; treefmt-check> + treefmt-check> + disko.devices = { treefmt-check> + disk = { treefmt-check> + main = { treefmt-check> + # ... treefmt-check> + ESP = { treefmt-check> + # ... treefmt-check> + content = { treefmt-check> + type = "filesystem"; treefmt-check> + format = "vfat"; treefmt-check> + mountpoint = "/boot"; treefmt-check> + mountOptions = [ "umask=0077" ]; treefmt-check> + extraArgs = [ "-n" "ESP" ]; treefmt-check> + }; treefmt-check> + }; treefmt-check> + root = { treefmt-check> + size = "100%"; treefmt-check> + content = { treefmt-check> + type = "filesystem"; treefmt-check> + format = "ext4"; treefmt-check> + mountpoint = "/"; treefmt-check> + extraArgs = [ "-L" "nixos" ]; treefmt-check> + }; treefmt-check> + }; treefmt-check> + # ... treefmt-check> + ``` error: Cannot build '/nix/store/nw1p0x0fpq3vhwc68wfzhn8cvmw74b4j-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/5aqpff97621rnhjsdgv2pka1fykcvksl-treefmt-check Last 25 log lines: > + 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" ]; > + }; > + }; > + # ... > + ``` For full logs, run: nix log /nix/store/nw1p0x0fpq3vhwc68wfzhn8cvmw74b4j-treefmt-check.drv