dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
3664507
3 files changed +6 −11
modifiedflake.nix
@@ -20,9 +20,9 @@ | ||
| 20 | 20 | inputs.nixpkgs.follows = "nixpkgs"; |
| 21 | 21 | }; |
| 22 | 22 | |
| 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). | |
| 26 | 26 | nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; |
| 27 | 27 | |
| 28 | 28 | imsh-clients = { |
modifiedmodules/nixos/base.nix
@@ -17,7 +17,7 @@ | ||
| 17 | 17 | "flakes" |
| 18 | 18 | ]; |
| 19 | 19 | # 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. | |
| 21 | 21 | trusted-users = [ |
| 22 | 22 | "root" |
| 23 | 23 | "@wheel" |
modifiedmodules/nixos/cachyos.nix
@@ -49,14 +49,9 @@ | ||
| 49 | 49 | { |
| 50 | 50 | # --- Kernel ---------------------------------------------------------------- |
| 51 | 51 | |
| 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. | |
| 54 | 54 | 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 | - }; | |
| 60 | 55 | |
| 61 | 56 | # Same build as linux-cachyos on CachyOS's znver4 repo: EEVDF scheduler, |
| 62 | 57 | # 1000 Hz, full preemption, Clang ThinLTO, tuned for Zen 4 (also right for |