mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
boiling opsec
This commit is contained in:
7 files changed
+210
-30
No files matched your search
@@ -1,35 +1,9 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.nixosModules.common-boot =
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.efibootmgr ];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
# todo soryu kernel, opsec modules ..
|
||||
boot.kernelParams = [
|
||||
"mitigations=off"
|
||||
"nmi_watchdog=1"
|
||||
"transparent_hugepage=madvise"
|
||||
];
|
||||
|
||||
boot.kernelModules = [
|
||||
"tcp_bbr"
|
||||
"sch_fq"
|
||||
];
|
||||
|
||||
hardware.i2c.enable = true;
|
||||
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;
|
||||
|
||||
Reference in new issue
Block a user