System Gen182 @ 2025-05-02-23:48:15 by jonas@comfy-station
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
{config, ...}: {
|
||||
# Enable Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.hive.bluetooth;
|
||||
in {
|
||||
options = {
|
||||
hive.bluetooth.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Bluetooth with blueman support.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Enable Bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user