21 lines
363 B
Nix
21 lines
363 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.grimmShared)
|
|
enable
|
|
network
|
|
graphical
|
|
sound
|
|
;
|
|
in
|
|
{
|
|
config = lib.mkIf (enable && network && config.hardware.bluetooth.enable) {
|
|
services.blueman.enable = lib.mkIf graphical true;
|
|
|
|
environment.systemPackages = [ pkgs.bluetuith ] ++ lib.optional sound.enable pkgs.bluez;
|
|
};
|
|
}
|