diff --git a/README.md b/README.md index d835d1e..e881caa 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,29 @@ Add the repo's overlay in your NixOS configuration, this will expose the package Then specify `pkgs.cachyosKernels.linuxPackages-cachyos-latest` (or other variants you'd like) in your `boot.kernelPackages` option. + +### Binary cache + +I'm running a Hydra CI to build the kernels and push them to my Attic binary cache. You can see the build status here: + +To use my binary cache, please add the following config: + +```nix +{ + nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ]; + nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ]; +} +``` + +This repo also has [Garnix CI](https://garnix.io) set up, and should work as long as the total build time is below the free plan threshold: + +```nix +{ + nix.settings.substituters = [ "https://cache.garnix.io" ]; + nix.settings.trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ]; +} +``` + ### Example configuration ```nix @@ -71,6 +94,11 @@ Then specify `pkgs.cachyosKernels.linuxPackages-cachyos-latest` (or other varian { nixpkgs.overlays = [ self.overlay ]; boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest; + + # Binary cache + nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ]; + nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ]; + # ... your other configs } ) @@ -78,7 +106,6 @@ Then specify `pkgs.cachyosKernels.linuxPackages-cachyos-latest` (or other varian }; } ``` - ### Help! My kernel is failing to build! In most cases, failing to build a kernel is caused by CachyOS not updating patches for the latest kernel version. (e.g. hardened 6.18 kernel as of 2025-12-12)