Bluetooth module
This commit is contained in:
parent
2e0b4f41fc
commit
16f9ecf093
3 changed files with 31 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
|||
{ lib, config, ... }:
|
||||
with lib;
|
||||
let cfg = config.voidconf.audio;
|
||||
in {
|
||||
let
|
||||
cfg = config.voidconf.audio;
|
||||
in
|
||||
{
|
||||
options.voidconf.audio = {
|
||||
enable = mkEnableOption "Enable all the audio daemons";
|
||||
};
|
||||
|
|
26
modules/bluetooth.nix
Normal file
26
modules/bluetooth.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.voiconf.bluetooth;
|
||||
in
|
||||
{
|
||||
options.voidconf.bluetooth = {
|
||||
enable = mkEnableOption "Enables bluetooth tools";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
hardware.bleutooth = {
|
||||
enable = true;
|
||||
};
|
||||
services.blueman = {
|
||||
enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
bluez
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue