aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_streamlink
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:05:58 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:05:58 +0100
commit24d832de3ad0bf749fd63fc5239a57371b2fdc3e (patch)
treef01913d404aa17aa5443cfe8e48a61e4ae5a753f /dot_local/bin/executable_streamlink
parent413b81c8b24a47fe9041aae1db5b5bf1a8a5c734 (diff)
downloaddotfiles-24d832de3ad0bf749fd63fc5239a57371b2fdc3e.tar.gz
dotfiles-24d832de3ad0bf749fd63fc5239a57371b2fdc3e.tar.bz2
dotfiles-24d832de3ad0bf749fd63fc5239a57371b2fdc3e.zip
fix(systemd,scripts): unhardcode /usr/bin paths for nix-migrated tools
The chezmoi-owned user units and ~/.local/bin wrapper scripts called the migrated tools by absolute /usr/bin/ path. After the move to nix, those binaries live under ~/.nix-profile/bin (no /usr/bin alias). systemd user units: drop the /usr/bin/ prefix on cliphist-{text,image} (wl-paste), inhibridge, swayidle, swayrd, waybar, and the inner wob in wob.service (outer /usr/bin/sh stays, sh is system). systemd resolves bare names through the unit's inherited PATH, which includes ~/.nix-profile/bin via hm-session-vars. dictate: default_model now points at ~/.nix-profile/share/whisper-cpp-models/ggml-base.bin (overridable via $WHISPER_MODEL). Header rewritten to mention nix instead of AUR. yt-dlp / streamlink wrappers: pass $HOME/.nix-profile/bin/<tool> to _sandbox-net-parser so the bwrap-sandboxed binary is resolved explicitly (the wrappers shadow PATH lookup inside their own ~/.local/bin so re-entry would loop).
Diffstat (limited to 'dot_local/bin/executable_streamlink')
-rw-r--r--dot_local/bin/executable_streamlink4
1 files changed, 2 insertions, 2 deletions
diff --git a/dot_local/bin/executable_streamlink b/dot_local/bin/executable_streamlink
index 67dc122..d13a66d 100644
--- a/dot_local/bin/executable_streamlink
+++ b/dot_local/bin/executable_streamlink
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
-# Thin wrapper: run /usr/bin/streamlink inside _sandbox-net-parser. The
+# Thin wrapper: run streamlink inside _sandbox-net-parser. The
# sandbox keeps `/` bind-mounted, so streamlink's configured player
# (`flatpak run io.mpv.Mpv` — see ~/.config/streamlink/config) is reachable
# via /usr/bin/flatpak.
-exec _sandbox-net-parser /usr/bin/streamlink "$@"
+exec _sandbox-net-parser "$HOME/.nix-profile/bin/streamlink" "$@"