diff options
Diffstat (limited to 'home-manager')
| -rw-r--r-- | home-manager/bashrc | 2 | ||||
| -rwxr-xr-x | home-manager/scripts/wake-phosphophyllite.sh | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/home-manager/bashrc b/home-manager/bashrc index e85759a..6104d9d 100644 --- a/home-manager/bashrc +++ b/home-manager/bashrc @@ -6,4 +6,4 @@ if [ -f ~/secrets.env ]; then fi alias mkflake="~/scripts/create-flake.sh" - +alias wakedesktop="~/scripts/wake-phosphophyllite.sh" diff --git a/home-manager/scripts/wake-phosphophyllite.sh b/home-manager/scripts/wake-phosphophyllite.sh new file mode 100755 index 0000000..bcfcc9d --- /dev/null +++ b/home-manager/scripts/wake-phosphophyllite.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -euo pipefail + +HOMELAB="${HOMELAB_TAILSCALE_HOST:-homelab}" +TARGET_MAC="10:7c:61:48:cf:8f" + +tailscale ssh "$HOMELAB" "wakeonlan $TARGET_MAC" |
