Bluetooth module

This commit is contained in:
Nox Sluijtman 2025-02-24 22:27:29 +01:00
parent 2e0b4f41fc
commit 16f9ecf093
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
3 changed files with 31 additions and 2 deletions

View file

@ -18,6 +18,7 @@
./modules/kernel.nix ./modules/kernel.nix
./modules/fcitx5.nix ./modules/fcitx5.nix
./modules/programs.nix ./modules/programs.nix
./modules/bluetooth.nix
]; ];
}; };

View file

@ -1,7 +1,9 @@
{ lib, config, ... }: { lib, config, ... }:
with lib; with lib;
let cfg = config.voidconf.audio; let
in { cfg = config.voidconf.audio;
in
{
options.voidconf.audio = { options.voidconf.audio = {
enable = mkEnableOption "Enable all the audio daemons"; enable = mkEnableOption "Enable all the audio daemons";
}; };

26
modules/bluetooth.nix Normal file
View 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
];
};
}