add bluetooth option
This commit is contained in:
parent
1a0615304d
commit
f9a6bccf42
3 changed files with 16 additions and 0 deletions
7
modules/nixos/hardware/bluetooth.nix
Normal file
7
modules/nixos/hardware/bluetooth.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.hardware.bluetooth.enable {
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./bluetooth.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./sound.nix
|
./sound.nix
|
||||||
./nvidia.nix
|
./nvidia.nix
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue