modules: hardware: move 'bluetooth'
This commit is contained in:
parent
e81aaa8ebc
commit
9b054d10c7
|
@ -3,7 +3,6 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./bluetooth.nix
|
||||
./documentation.nix
|
||||
./ergodox.nix
|
||||
./hardware
|
||||
|
|
|
@ -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";
|
|
@ -3,6 +3,6 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
# FIXME: add modules
|
||||
./bluetooth.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue