parent
9d31fc6f2f
commit
83bc927a8d
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@
|
||||||
systemd.services."temp-fix-nic" = {
|
systemd.services."temp-fix-nic" = {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
after = ["tailscaled.service"];
|
after = ["tailscaled.service"];
|
||||||
path = [pkgs.ripgrep];
|
path = [pkgs.ripgrep "/run/wrappers"];
|
||||||
script = ''
|
script = ''
|
||||||
# Wait for boot to finish
|
# Wait for boot to finish
|
||||||
sleep 60
|
sleep 60
|
||||||
|
@ -58,6 +58,7 @@
|
||||||
if echo "$line" | rg 'NIC Link is Up' &> /dev/null; then
|
if echo "$line" | rg 'NIC Link is Up' &> /dev/null; then
|
||||||
echo "restarting tailscaled"
|
echo "restarting tailscaled"
|
||||||
systemctl restart tailscaled.service
|
systemctl restart tailscaled.service
|
||||||
|
sudo -u ${mainUser} systemctl --user restart spotifyd
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue