nix/option/Kernel.nix

28 lines
712 B
Nix
Raw Normal View History

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