diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-05-05 15:32:20 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-05-05 16:11:01 -0700 |
commit | 748d8310fa7e044ad4c950ff38e31309ea3f606d (patch) | |
tree | 4a097ffd7a05e17f7b4a55660abff765e0346e11 /doc/manual/src/package-management/s3-substituter.md | |
parent | a3d4aca83691eb4bcbc2d3b20b559dbd59f02887 (diff) |
Fix the pages in the manual for Lix
This doesn't comprehensively fix everything outdated in the manual, or
make the manual greatly better, but it does note down where at least
jade noticed it was wrong, and it does fix all the instances of
referencing Nix to conform to the style guide to the best of our
ability.
A lot of things have been commented out for being wrong, and there are
three types of FIXME introduced:
- FIXME(Lix): generically Lix needs to fix it
- FIXME(Qyriad): re https://git.lix.systems/lix-project/lix/issues/215
- FIXME(meson): docs got outdated by meson changes and need rewriting
I did fix a bunch of it that I could, but there could certainly be
mistakes and this is definitely just an incremental improvement.
Fixes: https://git.lix.systems/lix-project/lix/issues/266
Change-Id: I5993c4603d7f026a887089fce77db08394362135
Diffstat (limited to 'doc/manual/src/package-management/s3-substituter.md')
-rw-r--r-- | doc/manual/src/package-management/s3-substituter.md | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/doc/manual/src/package-management/s3-substituter.md b/doc/manual/src/package-management/s3-substituter.md index d8a1d9105..55182128b 100644 --- a/doc/manual/src/package-management/s3-substituter.md +++ b/doc/manual/src/package-management/s3-substituter.md @@ -1,17 +1,28 @@ # Serving a Nix store via S3 -Nix has [built-in support](@docroot@/command-ref/new-cli/nix3-help-stores.md#s3-binary-cache-store) -for storing and fetching store paths from -Amazon S3 and S3-compatible services. This uses the same *binary* -cache mechanism that Nix usually uses to fetch prebuilt binaries from +Lix has [built-in support](@docroot@/command-ref/new-cli/nix3-help-stores.md#s3-binary-cache-store) +for storing and fetching store paths from Amazon S3 and S3-compatible services. + +<div class="warning"> + +FIXME(Lix): document the correct setup to fetch from a s3 cache via HTTP rather than just through `s3://` (which works, but forces you to remain s3-like on the client side) + +</div> + +<!-- +FIXME(Lix): no it doesn't! cache.nixos.org is just http! + +This uses the same *binary* +cache mechanism that Lix usually uses to fetch prebuilt binaries from [cache.nixos.org](https://cache.nixos.org/). +--> In this example we will use the bucket named `example-nix-cache`. ## Anonymous Reads to your S3-compatible binary cache If your binary cache is publicly accessible and does not require -authentication, the simplest and easiest way to use Nix with your S3 +authentication, the simplest and easiest way to use Lix with your S3 compatible binary cache is to use the HTTP URL for that cache. For AWS S3 the binary cache URL for example bucket will be exactly @@ -48,11 +59,11 @@ Your bucket will need the following bucket policy: For AWS S3 the binary cache URL for example bucket will be exactly <s3://example-nix-cache>. -Nix will use the [default credential provider +Lix will use the [default credential provider chain](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/credentials.html) for authenticating requests to Amazon S3. -Nix supports authenticated reads from Amazon S3 and S3 compatible binary +Lix supports authenticated reads from Amazon S3 and S3 compatible binary caches. Your bucket will need a bucket policy allowing the desired users to @@ -63,11 +74,11 @@ updated to have a restricted `Principal` to support this. ## Authenticated Writes to your S3-compatible binary cache -Nix support fully supports writing to Amazon S3 and S3 compatible +Lix support fully supports writing to Amazon S3 and S3 compatible buckets. The binary cache URL for our example bucket will be <s3://example-nix-cache>. -Nix will use the [default credential provider +Lix will use the [default credential provider chain](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/credentials.html) for authenticating requests to Amazon S3. |