Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
26 lines
391 B
Nix
26 lines
391 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.modules.system.hardware.bluetooth;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
inherit (cfg) powerOnBoot;
|
|
};
|
|
environment.systemPackages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
bluetuith
|
|
bluez
|
|
blueman
|
|
;
|
|
};
|
|
};
|
|
}
|