Revert "feat(home,agents): herdr workspaces now actually attach to shared opencode serve (ADR-0006 + symlink)"

This reverts commit 16a44b9fb2.
This commit is contained in:
oqyude committed 2026-10-15 20:15:39 +03:00
1 parent 16a44b9fb2
commit 158f08d14a
5 files changed
+7 -119

No files matched your search

-18
View File
@@ -107,24 +107,6 @@ in
# (verified: pkgs/by-name/he/herdr/package.nix).
home.packages = [ pkgs.herdr ];
# Drop a `~/.local/bin/opencode` symlink that preempts the home-manager wrap
# (`/etc/profiles/per-user/oqyude/bin/opencode`) at the *interactive* PATH
# the herdr pane actually uses. Why this is needed in addition to the
# `Service.Environment` shim above: on sapphira, the user's zsh loads
# `/etc/static/zshrc` which `source`s `oh-my-zsh.sh`, and oh-my-zsh rebuilds
# `$PATH` from its own plugin list (`$HOME/.nix-profile/bin` and friends).
# The new PATH no longer contains our shim dir, so even though the herdr
# unit's `Environment=PATH=…` puts the shim first in the pane's *env file*,
# the shell rewrites it on startup and the symlink in `~/.local/bin`
# (which survives the rewrite — it's the very first entry) is what
# `command -v opencode` then resolves. Verified on sapphira 2026-10-15.
# Limited to hosts that actually run the shared server (sapphira); rydiwo
# is untouched.
home.file."${config.home.homeDirectory}/.local/bin/opencode" =
lib.mkIf sharedServeEnabled {
source = "${opencodeAttachShim}/bin/opencode";
};
# systemd user service: headless `herdr server` running in the
# dedicated `herdr-prod` session namespace.
#