mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
23 lines
342 B
Nix
23 lines
342 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;
|
|
powerOnBoot = true;
|
|
};
|
|
|
|
services.blueman.enable = true;
|
|
};
|
|
}
|