mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
27 lines
440 B
Nix
27 lines
440 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.system.hardware.bluetooth;
|
|
in
|
|
{
|
|
options.my.system.hardware.bluetooth = {
|
|
enable = lib.mkEnableOption "Bluetooth support";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hardware = {
|
|
bluetooth.enable = true;
|
|
bluetooth.powerOnBoot = true;
|
|
};
|
|
|
|
services = {
|
|
bluetooth.enable = true;
|
|
bluetooth.startWhenNeeded = true;
|
|
blueman.enable = true;
|
|
};
|
|
};
|
|
}
|