feat(ueboom): use timer to make sure we're always connected
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-15 11:31:48 -05:00
parent 7c362318aa
commit 853552493f

View file

@ -24,12 +24,18 @@
# Have pulseaudio and spotifyd start at boot but after bluetooth # Have pulseaudio and spotifyd start at boot but after bluetooth
# so bluetooth accepts sound connections from the start. # so bluetooth accepts sound connections from the start.
users.users.${mainUser}.linger = true; users.users.${mainUser}.linger = true;
systemd.user.services = { systemd.user.services = {
pulseaudio.after = ["bluetooth.service"]; pulseaudio = {
spotifyd.after = ["pulseaudio.service"]; after = ["bluetooth.service"];
wantedBy = ["default.target"];
};
spotifyd = {
after = ["pulseaudio.service"];
wantedBy = ["default.target"];
};
ueboom = { ueboom = {
after = ["spotifyd.service"];
path = builtins.attrValues { path = builtins.attrValues {
inherit (pkgs) bluez; inherit (pkgs) bluez;
inherit (config.services.pulseaudio) package; inherit (config.services.pulseaudio) package;
@ -46,11 +52,16 @@
}; };
}; };
}; };
systemd.user.targets.default.wants = [
"pulseaudio.service" systemd.user.timers.ueboom = {
"spotifyd.service" after = ["spotifyd.service"];
"ueboom.service" timerConfig = {
]; Unit = "ueboom.service";
OnCalendar = "*-*-* *:0/10:50"; # Every 10 minutes
Persistent = true;
};
wantedBy = ["timers.target"];
};
services = { services = {
# Allow pulseaudio to be managed by MPD # Allow pulseaudio to be managed by MPD