Add binary cache info (Fixes #8)

This commit is contained in:
Lan Tian 2025-12-14 21:18:17 -08:00
parent c5ce4e5f61
commit 376b0ff5b0
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

View File

@ -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: <https://hydra.lantian.pub/jobset/lantian/nix-cachyos-kernel>
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)