2025-01-04 08:44:19 +03:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
|
|
|
purpose = config.module.purpose;
|
|
|
|
in
|
2024-11-16 04:43:59 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
options.module.kernel = {
|
2025-01-04 08:44:19 +03:00
|
|
|
enable = lib.mkEnableOption "the kernel tweaks." // {
|
|
|
|
default = with purpose; desktop || disown || laptop || router || server || work;
|
|
|
|
};
|
2024-12-18 09:40:11 +03:00
|
|
|
hardening = lib.mkOption {
|
2025-01-04 08:44:19 +03:00
|
|
|
default = with purpose; disown || laptop || router || server || work;
|
2024-12-18 09:40:11 +03:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
hotspotTtlBypass = lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
latest = lib.mkOption {
|
2025-01-04 08:44:19 +03:00
|
|
|
default = with purpose; desktop || laptop || gaming;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
router = lib.mkOption {
|
|
|
|
default = purpose.router;
|
2024-12-18 09:40:11 +03:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
};
|
2024-11-16 04:43:59 +03:00
|
|
|
}
|