Skip to content

Commit

Permalink
freefb: use adv mon and fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lopsided98 committed Nov 23, 2023
1 parent 30eaa56 commit 1c78203
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion machines/atomic-pi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [ "[email protected]" ];
Expand Down
12 changes: 10 additions & 2 deletions modules/services/hardware/freefb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
})
Expand All @@ -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 {
Expand Down

0 comments on commit 1c78203

Please sign in to comment.