Add bluetooth module
This commit is contained in:
parent
872407fc38
commit
419bb986d8
5 changed files with 21 additions and 11 deletions
17
modules/bluetooth.nix
Normal file
17
modules/bluetooth.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue