mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
dentritic refactor
This commit is contained in:
140 files changed
+2285
-2622
No files matched your search
@@ -0,0 +1,48 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.common-boot =
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.efibootmgr ];
|
||||
|
||||
nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ];
|
||||
boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-bore-lto;
|
||||
|
||||
boot.kernelParams = [
|
||||
"mitigations=off"
|
||||
"nmi_watchdog=1"
|
||||
"transparent_hugepage=madvise"
|
||||
];
|
||||
|
||||
boot.kernelModules = [
|
||||
"tcp_bbr"
|
||||
"sch_fq"
|
||||
];
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.core.default_qdisc" = "fq";
|
||||
"net.ipv4.tcp_congestion_control" = "bbr";
|
||||
"kernel.softlockup_panic" = 1;
|
||||
"kernel.hardlockup_panic" = 1;
|
||||
"kernel.hung_task_panic" = 1;
|
||||
"kernel.panic" = 50;
|
||||
};
|
||||
|
||||
boot.loader = {
|
||||
timeout = 5;
|
||||
efi = {
|
||||
canTouchEfiVariables = false;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
configurationLimit = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user