programs.github-copilot-cli.configDir

Home-Manager option

string
Written as a quoted string

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>.

type: string
Default
if config.home.preferXdgDirectories then "${config.xdg.configHome}/copilot" else "${config.home.homeDirectory}/.copilot"
Example
"${config.xdg.configHome}/copilot"
declared in: <home-manager/modules/programs/github-copilot-cli.nix>source unavailable