From 1c78203c8a074839e00ba6ffe60d2d835e367f4a Mon Sep 17 00:00:00 2001 From: Ben Wolsieffer Date: Thu, 23 Nov 2023 01:03:10 -0500 Subject: [PATCH] freefb: use adv mon and fix permissions --- machines/atomic-pi/default.nix | 2 +- modules/services/hardware/freefb.nix | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/machines/atomic-pi/default.nix b/machines/atomic-pi/default.nix index cc80365..367c1db 100644 --- a/machines/atomic-pi/default.nix +++ b/machines/atomic-pi/default.nix @@ -110,7 +110,7 @@ in { systemd.secrets = { freefb = { units = [ "freefb.service" ]; - files = secrets.mkSecret secrets.freefb.configFile {}; + files = secrets.mkSecret secrets.freefb.configFile { user = "freefb"; }; }; sshd = { units = [ "sshd@.service" ]; diff --git a/modules/services/hardware/freefb.nix b/modules/services/hardware/freefb.nix index 05ddd33..a2edc06 100644 --- a/modules/services/hardware/freefb.nix +++ b/modules/services/hardware/freefb.nix @@ -81,7 +81,10 @@ in { WorkingDirectory = "/var/lib/freefb"; }) ]; - environment.RUST_LOG = "info"; + environment = { + XDG_CACHE_HOME = "/var/cache"; + RUST_LOG = "info"; + }; startAt = cfg.interval; }; }) @@ -92,7 +95,12 @@ in { ''; }) (mkIf (cfg.link == "ble") { - hardware.bluetooth.enable = true; + hardware.bluetooth = { + enable = true; + package = pkgs.bluez5-experimental; + # Enable advertisement monitor + settings.General.Experimental = true; + }; # Allow access to BlueZ over DBus services.dbus.packages = singleton (pkgs.writeTextFile {