mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 08:29:17 +08:00
move bluetooth
This commit is contained in:
parent
d5b3506945
commit
ce23149fca
@ -142,6 +142,7 @@
|
|||||||
[
|
[
|
||||||
./modules/fileSystems
|
./modules/fileSystems
|
||||||
./modules/kernel
|
./modules/kernel
|
||||||
|
./modules/hardware
|
||||||
(inputs: { config.nixos =
|
(inputs: { config.nixos =
|
||||||
{
|
{
|
||||||
fileSystems =
|
fileSystems =
|
||||||
@ -171,6 +172,10 @@
|
|||||||
cpu = [ "intel" ];
|
cpu = [ "intel" ];
|
||||||
patches = [ "hdmi" "cjktty" ];
|
patches = [ "hdmi" "cjktty" ];
|
||||||
};
|
};
|
||||||
|
hardware =
|
||||||
|
{
|
||||||
|
bluetooth.enable = true;
|
||||||
|
};
|
||||||
};}
|
};}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{ config.hardware.bluetooth.enable = true; }
|
|
8
modules/hardware/default.nix
Normal file
8
modules/hardware/default.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
inputs:
|
||||||
|
{
|
||||||
|
options.nixos.hardware = let inherit (inputs.lib) mkOption types; in
|
||||||
|
{
|
||||||
|
bluetooth.enable = mkOption { type = types.bool; default = false; };
|
||||||
|
};
|
||||||
|
config.hardware.bluetooth.enable = inputs.config.nixos.hardware.bluetooth.enable;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user