2023-05-27 23:58:39 +02:00
|
|
|
{ config, lib, ... }:
|
2024-02-02 13:45:05 +01:00
|
|
|
let
|
|
|
|
cfg = config.hardware.az-bluetooth;
|
|
|
|
in
|
|
|
|
{
|
2023-05-27 23:58:39 +02:00
|
|
|
options = {
|
2023-05-29 09:17:12 +02:00
|
|
|
hardware.az-bluetooth.enable = lib.mkEnableOption "Enable Bluetooth";
|
2021-11-24 20:54:11 +01:00
|
|
|
};
|
|
|
|
|
2023-05-27 23:58:39 +02:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
# Blueooth support in general
|
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
powerOnBoot = false;
|
|
|
|
};
|
2023-05-10 09:23:43 +02:00
|
|
|
|
2023-05-27 23:58:39 +02:00
|
|
|
# Blueman applet
|
|
|
|
services.blueman.enable = true;
|
2023-05-10 09:23:43 +02:00
|
|
|
|
2023-05-27 23:58:39 +02:00
|
|
|
systemd.user.services.blueman-applet = {
|
|
|
|
partOf = [ "graphical-session.target" ];
|
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
};
|
2021-11-24 20:54:11 +01:00
|
|
|
}
|