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_config/systemd/user/cliphist-image.service | 2 +- dot_config/systemd/user/cliphist-text.service | 2 +- dot_config/systemd/user/inhibridge.service | 2 +- dot_config/systemd/user/swayidle.service | 2 +- dot_config/systemd/user/swayrd.service | 2 +- dot_config/systemd/user/waybar.service | 2 +- dot_config/systemd/user/wob.service | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'dot_config') diff --git a/dot_config/systemd/user/cliphist-image.service b/dot_config/systemd/user/cliphist-image.service index 5ddab8f..059695b 100644 --- a/dot_config/systemd/user/cliphist-image.service +++ b/dot_config/systemd/user/cliphist-image.service @@ -6,7 +6,7 @@ ConditionEnvironment=WAYLAND_DISPLAY [Service] Type=simple -ExecStart=/usr/bin/wl-paste --type image --watch cliphist store +ExecStart=wl-paste --type image --watch cliphist store Restart=on-failure RestartSec=2s diff --git a/dot_config/systemd/user/cliphist-text.service b/dot_config/systemd/user/cliphist-text.service index 96b0602..5ff00f5 100644 --- a/dot_config/systemd/user/cliphist-text.service +++ b/dot_config/systemd/user/cliphist-text.service @@ -6,7 +6,7 @@ ConditionEnvironment=WAYLAND_DISPLAY [Service] Type=simple -ExecStart=/usr/bin/wl-paste --type text --watch cliphist store +ExecStart=wl-paste --type text --watch cliphist store Restart=on-failure RestartSec=2s diff --git a/dot_config/systemd/user/inhibridge.service b/dot_config/systemd/user/inhibridge.service index a4435bf..0b36b35 100644 --- a/dot_config/systemd/user/inhibridge.service +++ b/dot_config/systemd/user/inhibridge.service @@ -7,7 +7,7 @@ ConditionEnvironment=DBUS_SESSION_BUS_ADDRESS [Service] Type=simple -ExecStart=/usr/bin/inhibridge +ExecStart=inhibridge Restart=on-failure RestartSec=2s diff --git a/dot_config/systemd/user/swayidle.service b/dot_config/systemd/user/swayidle.service index acd0196..d5b9cf1 100644 --- a/dot_config/systemd/user/swayidle.service +++ b/dot_config/systemd/user/swayidle.service @@ -6,7 +6,7 @@ ConditionEnvironment=WAYLAND_DISPLAY [Service] Type=simple -ExecStart=/usr/bin/swayidle -w \ +ExecStart=swayidle -w \ timeout 300 'swaymsg "output * power off"' \ resume 'swaymsg "output * power on"' \ timeout 330 'swaylock -f -e -c 000000' \ diff --git a/dot_config/systemd/user/swayrd.service b/dot_config/systemd/user/swayrd.service index 82e4164..c718fe5 100644 --- a/dot_config/systemd/user/swayrd.service +++ b/dot_config/systemd/user/swayrd.service @@ -7,7 +7,7 @@ ConditionEnvironment=SWAYSOCK [Service] Type=simple -ExecStart=/usr/bin/swayrd +ExecStart=swayrd Restart=on-failure RestartSec=2s diff --git a/dot_config/systemd/user/waybar.service b/dot_config/systemd/user/waybar.service index fb3a29e..919bc9b 100644 --- a/dot_config/systemd/user/waybar.service +++ b/dot_config/systemd/user/waybar.service @@ -6,7 +6,7 @@ ConditionEnvironment=WAYLAND_DISPLAY [Service] Type=simple -ExecStart=/usr/bin/waybar +ExecStart=waybar ExecReload=/bin/kill -SIGUSR2 $MAINPID Restart=on-failure RestartSec=2s diff --git a/dot_config/systemd/user/wob.service b/dot_config/systemd/user/wob.service index 913136e..c132501 100644 --- a/dot_config/systemd/user/wob.service +++ b/dot_config/systemd/user/wob.service @@ -7,7 +7,7 @@ ConditionEnvironment=WAYLAND_DISPLAY [Service] Type=simple ExecStartPre=/usr/bin/sh -c 'rm -f "$XDG_RUNTIME_DIR/wob.sock" && mkfifo "$XDG_RUNTIME_DIR/wob.sock"' -ExecStart=/usr/bin/sh -c 'exec tail -f "$XDG_RUNTIME_DIR/wob.sock" | /usr/bin/wob' +ExecStart=/usr/bin/sh -c 'exec tail -f "$XDG_RUNTIME_DIR/wob.sock" | wob' ExecStopPost=/usr/bin/rm -f %t/wob.sock Restart=on-failure RestartSec=2s -- cgit v1.3.1