Add bluetooth module

This commit is contained in:
Jakob Lechner 2023-11-22 14:49:20 +00:00
parent 872407fc38
commit 419bb986d8
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
5 changed files with 21 additions and 11 deletions

17
modules/bluetooth.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
let
cfg = config.jalr;
in
{
options.jalr = {
bluetooth.enable = pkgs.lib.mkEnableOption "Enable bluetooth" // { default = false; };
};
config = lib.mkIf cfg.uefi.enable {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
services.ofono.enable = true;
services.upower.enable = true;
};
}