modules: hardware: move 'bluetooth'

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

View file

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

View file

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

View file

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

View file

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