added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
31
nyx/hosts/enyo/kernel/config/base.nix
Normal file
31
nyx/hosts/enyo/kernel/config/base.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.kernel) yes no module;
|
||||
inherit (lib.attrsets) mapAttrs;
|
||||
inherit (lib.modules) mkForce;
|
||||
in {
|
||||
boot.kernelPatches = [
|
||||
{
|
||||
# <https://www.phoronix.com/news/Google-BBRv3-Linux>
|
||||
# <https://github.com/google/bbr/blob/v3/README.md>
|
||||
name = "bbr-and-cake";
|
||||
patch = null;
|
||||
extraStructuredConfig = mapAttrs (_: mkForce) {
|
||||
TCP_CONG_CUBIC = module;
|
||||
NET_SCH_CAKE = module;
|
||||
|
||||
# xanmod defaults
|
||||
TCP_CONG_BBR = yes;
|
||||
DEFAULT_BBR = yes;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "zstd-module-compression";
|
||||
patch = null;
|
||||
extraStructuredConfig = mapAttrs (_: mkForce) {
|
||||
KERNEL_ZSTD = yes;
|
||||
MODULE_COMPRESS_ZSTD = yes;
|
||||
MODULE_COMPRESS_XZ = no;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue