cachyos kernel + zRAM + swap, for better perfs and less ooms

This commit is contained in:
boyreau 2026-06-20 01:42:54 +02:00
commit f52275d3e1
6 changed files with 32 additions and 2 deletions

12
kernel.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, system, ... }:
let
cachy-source = import ./nix-cachyos-kernel;
cachy-kernel =
cachy-source.outputs.legacyPackages.x86_64-linux.linuxPackages-cachyos-bore-lto-x86_64-v3; # .linux-cachyos-bore-lto-x86_64-v3;
in
{
boot.kernelPackages = cachy-kernel;
nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ];
nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ];
}