fix(homie): fix restarting spotify in temp-fix-nic

This commit is contained in:
matt1432 2025-04-22 21:00:08 -04:00
parent 4d6a733a6e
commit 67beb737c2

View file

@ -47,7 +47,7 @@
systemd.services."temp-fix-nic" = {
wantedBy = ["multi-user.target"];
after = ["tailscaled.service"];
path = [pkgs.ripgrep "/run/wrappers"];
path = [pkgs.ripgrep pkgs.systemd "/run/wrappers"];
script = ''
# Wait for boot to finish
sleep 60
@ -58,7 +58,7 @@
if echo "$line" | rg 'NIC Link is Up' &> /dev/null; then
echo "restarting tailscaled"
systemctl restart tailscaled.service
sudo -u ${mainUser} systemctl --user restart spotifyd
machinectl shell ${mainUser}@ ${pkgs.systemd}/bin/systemctl --user restart spotifyd
fi
done
'';