home-manager: keep codex home writable

This commit is contained in:
2026-05-02 21:14:34 -07:00
parent 9a5a9ec5da
commit 67589779df

View File

@@ -57,7 +57,7 @@ in {
codex_home=${lib.escapeShellArg cfg.codexHome} codex_home=${lib.escapeShellArg cfg.codexHome}
worktree_codex=${lib.escapeShellArg cfg.worktreeCodexDir} worktree_codex=${lib.escapeShellArg cfg.worktreeCodexDir}
if [ -L "$codex_home" ] && [ "$(readlink "$codex_home")" = "$worktree_codex" ]; then if [ -L "$codex_home" ]; then
rm -f "$codex_home" rm -f "$codex_home"
mkdir -p "$codex_home" mkdir -p "$codex_home"
elif [ ! -e "$codex_home" ]; then elif [ ! -e "$codex_home" ]; then