mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 20:29:13 +08:00
11 lines
435 B
Nix
11 lines
435 B
Nix
inputs:
|
|
{
|
|
options.nixos.hardware = let inherit (inputs.lib) mkOption types; in
|
|
{
|
|
bluetooth.enable = mkOption { type = types.bool; default = false; };
|
|
joystick.enable = mkOption { type = types.bool; default = false; };
|
|
};
|
|
config.hardware = { bluetooth.enable = inputs.config.nixos.hardware.bluetooth.enable; }
|
|
// (if inputs.config.nixos.hardware.joystick.enable then { xone.enable = true; xpadneo.enable = true; } else {});
|
|
}
|