ryan4yin / nixos-and-flakes-book

:hammer_and_wrench: :heart: Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place! 想要学习使用 NixOS 与 Flakes 吗?在寻找一份新手友好的教程?那你可来对地方了!
https://nixos-and-flakes.thiscute.world
Creative Commons Attribution Share Alike 4.0 International
2.05k stars 104 forks source link

"Host Your Own Nix Binary Cache Server" is outdated #177

Open Svenum opened 3 months ago

Svenum commented 3 months ago

URL: https://nixos-and-flakes.thiscute.world/nix-store/host-your-own-binary-cache-server

Some commands on this page are outdated:

# old:
mc admin policy add s3 nix-cache-write nix-cache-write.json
# new:
mc admin policy create s3 nix-cache-write nix-cache-write.json

# old:
mc admin policy set s3 nix-cache-write user=nixbuilder
# new:
mc admin policy attach s3 nix-cache-write -user nixbuilder

and the step Pushing Store Paths to Binary Cache does not work for me.

The signing works great, but If I want to upload my "/run/current-system"

I got this error:

error: AWS error uploading 'nix-cache-info': Unable to parse ExceptionName: MalformedXML Message: The XML you provided was not well-formed or did not validate against our published schema
Svenum commented 2 months ago

Maybe add an article for https://github.com/zhaofengli/attic. Its much simpler to use.