mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 11:08:07 +02:00
Add binary cache info (Fixes #8)
This commit is contained in:
parent
c5ce4e5f61
commit
376b0ff5b0
29
README.md
29
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: <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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user