aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/environment.d/10-nix-profile-path.conf
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:06:01 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-06-05 11:06:01 +0100
commit67ab075d1dc12b2280cec38e39ca7d2df45642df (patch)
treef311d5b59a702deaddda5a2687af1bb6cdd39e1d /dot_config/environment.d/10-nix-profile-path.conf
parentcd050f0bdfea14f031e4a671a366c77d4f62b19d (diff)
downloaddotfiles-67ab075d1dc12b2280cec38e39ca7d2df45642df.tar.gz
dotfiles-67ab075d1dc12b2280cec38e39ca7d2df45642df.tar.bz2
dotfiles-67ab075d1dc12b2280cec38e39ca7d2df45642df.zip
revert(systemd): drop redundant environment.d PATH file
The absolute %h/.nix-profile/bin/<name> ExecStart paths (previous commit) fix unit startup without any PATH dependency. The remaining secondary lookups those binaries make (wl-paste -> cliphist, swayidle -> swaymsg/ playerctl) are already covered by the sway config's existing `systemctl --user import-environment PATH` (dot_config/sway/config), the established mechanism that also feeds waybar's nix-provisioned pass/python3. So environment.d/10-nix-profile-path.conf was a redundant parallel mechanism. Remove it.
Diffstat (limited to 'dot_config/environment.d/10-nix-profile-path.conf')
-rw-r--r--dot_config/environment.d/10-nix-profile-path.conf20
1 files changed, 0 insertions, 20 deletions
diff --git a/dot_config/environment.d/10-nix-profile-path.conf b/dot_config/environment.d/10-nix-profile-path.conf
deleted file mode 100644
index 61d6402..0000000
--- a/dot_config/environment.d/10-nix-profile-path.conf
+++ /dev/null
@@ -1,20 +0,0 @@
-# Prepend the Nix home-profile (and ~/.local/bin) to the systemd *user*
-# manager's environment PATH, so it is inherited by every service process.
-#
-# Scope of this file: it fixes PATH for *child-process* lookups made BY the
-# services — e.g. wl-paste spawning `cliphist store`, swayidle running
-# `swaymsg`/`playerctl`, and helper scripts (display-watcher.sh,
-# on-battery-suspend) that call nix tools by bare name. The systemd user
-# manager does NOT source ~/.zprofile, so without this its PATH is only
-# /usr/local/bin:/usr/bin:/bin and those bare-name lookups fail.
-#
-# It does NOT fix systemd's own ExecStart= binary resolution: systemd's
-# --user manager does not resolve a bare ExecStart name against this
-# (imported/environment.d) PATH, so those would still fail 203/EXEC. For
-# that reason the units under dot_config/systemd/user/ invoke their main
-# binary by absolute path (%h/.nix-profile/bin/<name>); this file only
-# covers the secondary PATH lookups those binaries/scripts perform.
-#
-# Note: environment.d is only re-read on a fresh user manager (login/boot)
-# or after `systemctl --user daemon-reexec`; it is not picked up mid-session.
-PATH=${HOME}/.nix-profile/bin:${HOME}/.local/bin:${PATH}