From 07a2598300c3c376e30614129e7ea8c133b0f691 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 26 Oct 2025 18:46:17 +0100 Subject: [PATCH] feat(tyr): setup bluetooth with home assistant. --- hosts/tyr/configuration.nix | 16 ++++++++++++++++ modules/servers/tyr/home-assistant.nix | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/hosts/tyr/configuration.nix b/hosts/tyr/configuration.nix index af5bcd5..871338a 100644 --- a/hosts/tyr/configuration.nix +++ b/hosts/tyr/configuration.nix @@ -59,6 +59,22 @@ LC_TIME = "hr_HR.UTF-8"; }; + # Setup bluetooth + hardware.bluetooth.enable = true; + hardware.bluetooth.powerOnBoot = true; + hardware.bluetooth.settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + Experimental = true; + }; + }; + + # Setup dbus broker + services.dbus = { + enable = true; + implementation = "broker"; + }; + # Enable seatd services.seatd.enable = true; diff --git a/modules/servers/tyr/home-assistant.nix b/modules/servers/tyr/home-assistant.nix index 78774b7..015a26d 100644 --- a/modules/servers/tyr/home-assistant.nix +++ b/modules/servers/tyr/home-assistant.nix @@ -5,8 +5,13 @@ ports = [ "8123:8123" ]; + capabilities = { + NET_ADMIN = true; + NET_RAW = true; + }; volumes = [ "/var/lib/homeassistant:/config" + "/run/dbus:/run/dbus:ro" ]; environment = { TZ = "Europe/Berlin";