nixos/modules/hardware/bluetooth/default.nix

28 lines
591 B
Nix
Raw Normal View History

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 = true;
2023-05-27 23:58:39 +02:00
};
2024-02-20 21:40:24 +01:00
# Xbox Controller support
hardware.xpadneo.enable = true;
2023-05-27 23:58:39 +02:00
# Blueman applet
services.blueman.enable = true;
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
}