From 24d832de3ad0bf749fd63fc5239a57371b2fdc3e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 5 Jun 2026 11:05:58 +0100 Subject: 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/ 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). --- dot_local/bin/executable_yt-dlp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_local/bin/executable_yt-dlp') diff --git a/dot_local/bin/executable_yt-dlp b/dot_local/bin/executable_yt-dlp index 3298e3f..87947a8 100644 --- a/dot_local/bin/executable_yt-dlp +++ b/dot_local/bin/executable_yt-dlp @@ -1,4 +1,4 @@ #!/usr/bin/env sh -# Thin wrapper: run /usr/bin/yt-dlp inside _sandbox-net-parser. See that +# Thin wrapper: run yt-dlp inside _sandbox-net-parser. See that # script for the threat model and the SANDBOX=0 escape hatch. -exec _sandbox-net-parser /usr/bin/yt-dlp "$@" +exec _sandbox-net-parser "$HOME/.nix-profile/bin/yt-dlp" "$@" -- cgit v1.3.1