dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

3664507

Drop the CachyOS kernel's binary cache

By Gustaf Granström

The kernel now compiles locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

3 files changed +6 −11

modifiedflake.nix
@@ -20,9 +20,9 @@
2020 inputs.nixpkgs.follows = "nixpkgs";
2121 };
2222
23- # CachyOS kernels, built by the maintainer's CI. Its nixpkgs input is left
24- # alone on purpose: overriding it changes the kernel's hash, so nothing comes
25- # from the binary cache and the kernel compiles locally.
23+ # CachyOS kernels. Its nixpkgs input is left alone on purpose: the kernel
24+ # stays the exact build upstream tests (it compiles locally, as its binary
25+ # cache isn't used).
2626 nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
2727
2828 imsh-clients = {
@@ -17,7 +17,7 @@
1717 "flakes"
1818 ];
1919 # Lets you (as a wheel member, who can sudo anyway) use the binary caches
20- # flakes ask for, such as the CachyOS kernel's.
20+ # flakes ask for.
2121 trusted-users = [
2222 "root"
2323 "@wheel"
@@ -49,14 +49,9 @@
4949 {
5050 # --- Kernel ----------------------------------------------------------------
5151
52- # The overlay pins the kernel to the nixpkgs it was built with, so it comes
53- # from the binary cache instead of compiling.
52+ # The overlay pins the kernel to the nixpkgs it was built with. Its binary
53+ # cache isn't used, so the kernel compiles locally.
5454 nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
55-
56- nix.settings = {
57- substituters = [ "https://attic.xuyh0120.win/lantian" ];
58- trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ];
59- };
6055
6156 # Same build as linux-cachyos on CachyOS's znver4 repo: EEVDF scheduler,
6257 # 1000 Hz, full preemption, Clang ThinLTO, tuned for Zen 4 (also right for