blueberry: enable bluetooth.service
i'm still not able to connect to a bluetooth speaker yet...
This commit is contained in:
@@ -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
|
||||
|
24
hosts/common/programs/blueberry.nix
Normal file
24
hosts/common/programs/blueberry.nix
Normal 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;
|
||||
};
|
||||
}
|
@@ -13,6 +13,7 @@
|
||||
./avahi.nix
|
||||
./bemenu.nix
|
||||
./bitcoin-cli.nix
|
||||
./blueberry.nix
|
||||
./bonsai.nix
|
||||
./brave.nix
|
||||
./brightnessctl.nix
|
||||
|
Reference in New Issue
Block a user