refactor: organizing some imports

This commit is contained in:
gwg313 2024-09-11 13:59:52 -04:00
parent c4f7a64329
commit db319ed5af
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
8 changed files with 184 additions and 95 deletions

View file

@ -1,9 +1,21 @@
{...}: {
services.blueman.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
{
config,
lib,
...
}: {
options = {
bluetooth.enable = lib.mkEnableOption "Enables Bluetooth";
};
services.upower = {enable = true;};
config = lib.mkIf config.bluetooth.enable {
services.blueman.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.upower = {
enable = true;
};
};
}