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