move bluetooth

This commit is contained in:
陈浩南 2023-07-15 22:45:35 +08:00
parent d5b3506945
commit ce23149fca
3 changed files with 13 additions and 1 deletions

View File

@ -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;
};
};} };}
) )

View File

@ -1 +0,0 @@
{ config.hardware.bluetooth.enable = true; }

View 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;
}