blueberry: enable bluetooth.service

i'm still not able to connect to a bluetooth speaker yet...
This commit is contained in:
2025-01-26 05:34:56 +00:00
parent 88ef815717
commit 3c41a0bd29
3 changed files with 25 additions and 9 deletions

View File

@@ -457,15 +457,6 @@ in
# blanket.sandbox.whitelistDbus.user = true; #< TODO: reduce # TODO: untested
blanket.sandbox.whitelistWayland = true;
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
blueberry.sandbox.whitelistWayland = true;
blueberry.sandbox.extraPaths = [
"/dev/rfkill"
"/run/dbus"
"/sys/class/rfkill"
"/sys/devices"
];
bridge-utils.sandbox.net = "all";
"cacert.unbundled".sandbox.enable = false; #< data only

View File

@@ -0,0 +1,24 @@
{ 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;
};
}

View File

@@ -13,6 +13,7 @@
./avahi.nix
./bemenu.nix
./bitcoin-cli.nix
./blueberry.nix
./bonsai.nix
./brave.nix
./brightnessctl.nix