Files
nix-files/hosts/common/programs/blueberry.nix
Colin 3c41a0bd29 blueberry: enable bluetooth.service
i'm still not able to connect to a bluetooth speaker yet...
2025-01-26 05:34:56 +00:00

25 lines
781 B
Nix

{ config, lib, ... }:
let
cfg = config.sane.programs.blueberry;
in
{
sane.programs.blueberry = {
sandbox.wrapperType = "inplace"; #< it places binaries in /lib and then /etc/xdg/autostart files refer to the /lib paths, and fail to be patched
sandbox.whitelistWayland = true;
sandbox.extraPaths = [
"/dev/rfkill"
"/run/dbus"
"/sys/class/rfkill"
"/sys/devices"
];
sandbox.keepPids = true; #< not sure why, but it fails to launch GUI without this
};
# TODO: hardware.bluetooth puts like 100 binaries from `bluez` onto PATH;
# i can probably patch this so it's just `bluetoothd`.
# see: <repo:nixos/nixpkgs:nixos/modules/services/hardware/bluetooth.nix>
hardware.bluetooth = lib.mkIf cfg.enabled {
enable = true;
};
}