treewide: initial commit

This commit is contained in:
2026-04-18 16:28:25 -04:00
commit 75532a931c
18 changed files with 1237 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{
config,
lib,
...
}:
let
cfg = config.sysctl;
inherit (lib)
mkEnableOption
mkIf
;
in
{
options.sysctl = {
enable = mkEnableOption "" // {
default = true;
};
};
config = mkIf cfg.enable {
boot.kernel.sysctl = {
"vm.page-cluster" = 0;
"vm.swappiness" = 100;
"vm.watermark_boost_factor" = 1;
};
};
}