add bluetooth option

This commit is contained in:
Osman Faruk Bayram 2025-10-23 21:30:19 +03:00
parent 1a0615304d
commit f9a6bccf42
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,7 @@
{ config, lib, ... }:
{
config = lib.mkIf config.hardware.bluetooth.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
};
}

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./bluetooth.nix
./boot.nix ./boot.nix
./sound.nix ./sound.nix
./nvidia.nix ./nvidia.nix

View file

@ -158,6 +158,14 @@
# Hardware # Hardware
hardware = { hardware = {
bluetooth = {
enable = lib.mkOption {
type = lib.types.bool;
default = config.osbmModules.desktopEnvironment != "none";
description = "Enable Bluetooth support";
};
};
sound = { sound = {
enable = lib.mkOption { enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;