mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:18:45 +08:00
move bluetooth
This commit is contained in:
parent
d5b3506945
commit
ce23149fca
@ -142,6 +142,7 @@
|
||||
[
|
||||
./modules/fileSystems
|
||||
./modules/kernel
|
||||
./modules/hardware
|
||||
(inputs: { config.nixos =
|
||||
{
|
||||
fileSystems =
|
||||
@ -171,6 +172,10 @@
|
||||
cpu = [ "intel" ];
|
||||
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