MyNixOS website logo
option

programs.github-copilot-cli.configDir

Directory holding Copilot CLI configuration files such as config.json, mcp-config.json, lsp-config.json, and copilot-instructions.md.

Defaults to ${config.xdg.configHome}/copilot when home.preferXdgDirectories is enabled and to ~/.copilot otherwise. The COPILOT_HOME environment variable is exported automatically whenever the directory differs from the upstream default of ~/.copilot.

See https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference#changing-the-location-of-the-configuration-directory.

Declarations
Type
string
Default
if config.home.preferXdgDirectories then
  "${config.xdg.configHome}/copilot"
else
  "${config.home.homeDirectory}/.copilot"
Example
"${config.xdg.configHome}/copilot"