Bluetooth module
This commit is contained in:
parent
2e0b4f41fc
commit
16f9ecf093
|
@ -18,6 +18,7 @@
|
|||
./modules/kernel.nix
|
||||
./modules/fcitx5.nix
|
||||
./modules/programs.nix
|
||||
./modules/bluetooth.nix
|
||||
];
|
||||
|
||||
};
|
||||
|
|
|
@ -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…
Reference in a new issue