nichts/nyx/modules/options/device/capabilities.nix
2024-04-09 23:11:33 +02:00

25 lines
706 B
Nix

{lib, ...}: let
inherit (lib) mkOption types;
in {
options.modules.device = {
# bluetooth is an insecure protocol if left unchedked, so while this defaults to true
# but the bluetooth.enable option does and should not.
hasBluetooth = mkOption {
type = types.bool;
default = true;
description = "Whether or not the system has bluetooth support";
};
hasSound = mkOption {
type = types.bool;
default = true;
description = "Whether the system has sound support (usually true except for servers)";
};
hasTPM = mkOption {
type = types.bool;
default = false;
description = "Whether the system has tpm support";
};
};
}