From 99977131d33cee07da9fee9a4fe2541f8b3b17be Mon Sep 17 00:00:00 2001 From: Thierry Delafontaine Date: Sat, 18 Oct 2025 10:16:16 +0200 Subject: [PATCH] opencode: change tilde (~) to `XDG_CONFIG_DIR` for command and agent paths Replace the use of `~` in the documentation for the command and agent settings with the `XDG_CONFIG_DIR` environment variable to avoid ambiguity about the config directory. Also switch to the `{file}` path macro so paths render correctly in the docs and tooling. --- modules/programs/opencode.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/opencode.nix b/modules/programs/opencode.nix index 47af7fd4..c8855dfe 100644 --- a/modules/programs/opencode.nix +++ b/modules/programs/opencode.nix @@ -87,7 +87,7 @@ in The attribute name becomes the command filename, and the value is either: - Inline content as a string - A path to a file containing the command content - Commands are stored in ~/.config/opencode/command/ directory. + Commands are stored in {file}`$XDG_CONFIG_HOME/.config/opencode/command/` directory. ''; example = lib.literalExpression '' { @@ -116,7 +116,7 @@ in The attribute name becomes the agent filename, and the value is either: - Inline content as a string - A path to a file containing the agent content - Agents are stored in ~/.config/opencode/agent/ directory. + Agents are stored in {file}`$XDG_CONFIG_HOME/.config/opencode/agent/` directory. ''; example = lib.literalExpression '' {