modules: hardware: move 'bluetooth'

This commit is contained in:
Bruno BELANYI 2021-05-29 16:37:07 +02:00
parent 66cd746e53
commit ec1bc63de7
4 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,6 @@
{
imports = [
./bluetooth.nix
./documentation.nix
./ergodox.nix
./hardware

View File

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.modules.bluetooth;
cfg = config.my.hardware.bluetooth;
in
{
options.my.modules.bluetooth = with lib; {
options.my.hardware.bluetooth = with lib; {
enable = mkEnableOption "bluetooth configuration";
enableHeadsetIntegration = my.mkDisableOption "A2DP sink configuration";

View File

@ -3,6 +3,6 @@
{
imports = [
# FIXME: add modules
./bluetooth.nix
];
}

View File

@ -8,7 +8,7 @@ in
};
config = lib.mkIf cfg.enable {
my.modules.bluetooth.enable = true;
my.hardware.bluetooth.enable = true;
my.home.bluetooth.enable = true;
};