implementing modules for system applications
This commit is contained in:
20
system/modules/hardware/bluetooth/default.nix
Normal file
20
system/modules/hardware/bluetooth/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.hardware.bluetooth;
|
||||
in {
|
||||
options = {
|
||||
modules.hardware.bluetooth.enable = mkEnableOption "Enables bluetooth";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user